org.jboss.seam.security.external
Class OpenIdPrincipalImpl

java.lang.Object
  extended by org.jboss.seam.security.external.OpenIdPrincipalImpl
All Implemented Interfaces:
OpenIdPrincipal

public class OpenIdPrincipalImpl
extends Object
implements OpenIdPrincipal

Author:
Marcel Kolsteren

Constructor Summary
OpenIdPrincipalImpl(String identifier, URL openIdProvider, Map<String,List<String>> attributeValues)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAttribute(String alias)
          Convenience method for fetching the first value of the attribute with the given alias.
 Map<String,List<String>> getAttributeValues()
          The attributes of the person, that have been received from the OpenID provider.
 String getIdentifier()
          This identifier holds the OpenID that is owned by the person.
 URL getOpenIdProvider()
          The endpoint URL of the authentication service of the OpenID provider that verified that the person owns the OpenID.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenIdPrincipalImpl

public OpenIdPrincipalImpl(String identifier,
                           URL openIdProvider,
                           Map<String,List<String>> attributeValues)
Method Detail

getIdentifier

public String getIdentifier()
Description copied from interface: OpenIdPrincipal
This identifier holds the OpenID that is owned by the person.

Specified by:
getIdentifier in interface OpenIdPrincipal
Returns:
the verified OpenID

getOpenIdProvider

public URL getOpenIdProvider()
Description copied from interface: OpenIdPrincipal
The endpoint URL of the authentication service of the OpenID provider that verified that the person owns the OpenID.

Specified by:
getOpenIdProvider in interface OpenIdPrincipal
Returns:
the OpenID provider authentication endpoint URL

getAttributeValues

public Map<String,List<String>> getAttributeValues()
Description copied from interface: OpenIdPrincipal
The attributes of the person, that have been received from the OpenID provider. It maps aliases of requested attributes to lists of attribute values.

Specified by:
getAttributeValues in interface OpenIdPrincipal
Returns:
the attribute map

getAttribute

public String getAttribute(String alias)
Description copied from interface: OpenIdPrincipal
Convenience method for fetching the first value of the attribute with the given alias. If the attribute doesn't exits, it returns null;

Specified by:
getAttribute in interface OpenIdPrincipal
Parameters:
alias - attribute alias
Returns:
the first value of the attribute, or null

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011 Seam Framework. All Rights Reserved.