public DeploymentInfo addLastAuthenticationMechanism ( final String name , final AuthenticationMechanism mechanism ) { authenticationMechanisms . put ( name , new ImmediateAuthenticationMechanismFactory ( mechanism ) ) ; if ( loginConfig == null ) { loginConfig = new LoginConfig ( null ) ; } loginConfig . addLastAuthMethod ( new AuthMethodConfig ( name ) ) ; return this ; }
Adds an authentication mechanism directly to the deployment . This mechanism will be last in the list .