question: private boolean addAllMechsFromProvider ( Provider p ) { String prop ; boolean retVal = false ; Enumeration < Object > props = p . keys ( ) ; while ( props . hasMoreElements ( ) ) { prop = ( String ) props . nextElement ( ) ; if ( isMechFactoryProperty ( prop ) ) { try { Oid mechOid = getOidFromMechFactoryProperty ( prop ) ; mechs . add ( mechOid ) ; retVal = true ; } catch ( GSSException e ) { GSSUtil . debug ( "Ignore the invalid property " + prop + " from provider " + p . getName ( ) ) ; } } } return retVal ; }
target:  Helper routine to go through all properties contined in a provider and add its mechanisms to the list of supported mechanisms. If no default mechanism has been assinged so far, it sets the default MechanismFactory and Oid as well.