public boolean setAuthenticationMethod ( int methodId , Authentication method ) { if ( methodId < 0 || methodId > 255 ) return false ; if ( method == null ) { // Want to remove a particular method return ( authMethods . remove ( new Integer ( methodId ) ) != null ) ; } else { // Add the method, or rewrite old one authMethods . put ( new Integer ( methodId ) , method ) ; } return true ; }
Adds another authentication method .