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;
}

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 ; }
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 .
