public boolean isAuthenticationMechanismPresent ( final String mechanismName ) { if ( loginConfig != null ) { for ( AuthMethodConfig method : loginConfig . getAuthMethods ( ) ) { if ( method . getName ( ) . equalsIgnoreCase ( mechanismName ) ) { return true ; } } } return false ; }
Returns true if the specified mechanism is present in the login config