org.jboss.seam.security.external.openid
Class OpenIdAuthenticator

java.lang.Object
  extended by org.jboss.seam.security.BaseAuthenticator
      extended by org.jboss.seam.security.external.openid.OpenIdAuthenticator
All Implemented Interfaces:
Serializable, org.jboss.seam.security.Authenticator

@Named(value="openIdAuthenticator")
@SessionScoped
public class OpenIdAuthenticator
extends org.jboss.seam.security.BaseAuthenticator
implements org.jboss.seam.security.Authenticator, Serializable

An Authenticator implementation that uses OpenID to authenticate the user.

Author:
Shane Bryzak
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.seam.security.Authenticator
org.jboss.seam.security.Authenticator.AuthenticationStatus
 
Constructor Summary
OpenIdAuthenticator()
           
 
Method Summary
 void authenticate()
           
 String getProviderCode()
           
 List<OpenIdProvider> getProviders()
           
protected  javax.servlet.http.HttpServletResponse getResponse()
           
protected  OpenIdProvider getSelectedProvider()
           
 boolean isIdentityManaged()
           
 void setIdentityManaged(boolean identityManaged)
           
 void setProviderCode(String providerCode)
           
 void success(OpenIdPrincipal principal)
           
protected  void validateManagedUser(OpenIdPrincipal principal)
          Validates the OpenID user against the local Identity Management store.
 
Methods inherited from class org.jboss.seam.security.BaseAuthenticator
getStatus, getUser, postAuthenticate, setStatus, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.seam.security.Authenticator
getStatus, getUser, postAuthenticate
 

Constructor Detail

OpenIdAuthenticator

public OpenIdAuthenticator()
Method Detail

isIdentityManaged

public boolean isIdentityManaged()

setIdentityManaged

public void setIdentityManaged(boolean identityManaged)

getProviderCode

public String getProviderCode()

setProviderCode

public void setProviderCode(String providerCode)

getSelectedProvider

protected OpenIdProvider getSelectedProvider()

authenticate

public void authenticate()
Specified by:
authenticate in interface org.jboss.seam.security.Authenticator

getResponse

protected javax.servlet.http.HttpServletResponse getResponse()

getProviders

public List<OpenIdProvider> getProviders()

success

public void success(OpenIdPrincipal principal)

validateManagedUser

protected void validateManagedUser(OpenIdPrincipal principal)
Validates the OpenID user against the local Identity Management store. Important!! This method must be invoked within an active transaction if you are using JpaIdentityStore (i.e., add the

Parameters:
principal -


Copyright © 2011 Seam Framework. All Rights Reserved.