org.jboss.seam.security.external.openid.api
Interface OpenIdPrincipal

All Known Implementing Classes:
OpenIdPrincipalImpl

public interface OpenIdPrincipal

Object respresenting a person that has been authenticated using OpenID.

Author:
Marcel Kolsteren

Method Summary
 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.
 

Method Detail

getIdentifier

String getIdentifier()
This identifier holds the OpenID that is owned by the person.

Returns:
the verified OpenID

getOpenIdProvider

URL getOpenIdProvider()
The endpoint URL of the authentication service of the OpenID provider that verified that the person owns the OpenID.

Returns:
the OpenID provider authentication endpoint URL

getAttributeValues

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

Returns:
the attribute map

getAttribute

String getAttribute(String alias)
Convenience method for fetching the first value of the attribute with the given alias. If the attribute doesn't exits, it returns null;

Parameters:
alias - attribute alias
Returns:
the first value of the attribute, or null


Copyright © 2011 Seam Framework. All Rights Reserved.