...
| Bloque de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
package es.um.atica.XXXX.security.authentication;
...
import org.jboss.seam.annotations.Factory;
import es.um.atica.seam.security.authentication.method.SSOAuthenticationMethods;
@Name( "authenticationManagerBean" )
@Scope( SESSION )
@Install( precedence = FRAMEWORK )
@BypassInterceptors
@Startup
public class AuthenticationManagerBean extends AbstractAuthenticationManagerBean {
// Declaracion de los metodos de autenticacion validos por SSO
private static final SSOAuthenticationMethods[] VALIDS_SSO_AUTHENTICATION_METHODS = {
SSOAuthenticationMethods.SSO_CORREO
};
...
// Forma de hacer accesible los metodos de autenticacion validos por SSO
@Factory( SSOAuthenticationMethods.SSO_AUTHENTICATION_METHODS_COMPONENT_NAME )
public SSOAuthenticationMethods[] getValidsSSOAuthenticationMethods() {
return VALIDS_SSO_AUTHENTICATION_METHODS;
}
} |
...