public int verify ( RRset set , Cache cache ) { Iterator sigs = set . sigs ( ) ; if ( Options . check ( "verbosesec" ) ) System . out . print ( "Verifying " + set . getName ( ) + "/" + Type . string ( set . getType ( ) ) + ": " ) ; if ( ! sigs . hasNext ( ) ) { if ( Options . check ( "verbosesec" ) ) System . out . println ( "Insecure" ) ; return DNSSEC . Insecure ; } while ( sigs . hasNext ( ) ) { RRSIGRecord sigrec = ( RRSIGRecord ) sigs . next ( ) ; if ( verifySIG ( set , sigrec , cache ) == DNSSEC . Secure ) { if ( Options . check ( "verbosesec" ) ) System . out . println ( "Secure" ) ; return DNSSEC . Secure ; } } if ( Options . check ( "verbosesec" ) ) System . out . println ( "Failed" ) ; return DNSSEC . Failed ; }
Attempts to verify an RRset . This does not modify the set .