org.openid4java.infocard.rp
public class InfocardInvocation extends java.lang.Object
Attribute Exchange Fetch Requests can be mapped to Infocard claim URIs.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_issuer
The issuer's URL for the accepted claims.
|
private java.lang.String |
_issuerPolicy
The issuer's WS-SecurityPolicy URL, if different than "
|
private static org.apache.commons.logging.Log |
_log |
private java.util.List |
_optionalClaims
List of optional claim URIs.
|
private java.lang.String |
_privacyUrl
Relying Party's privacy URL.
|
private int |
_privacyVersion
Relying Party's privacy document version.
|
private java.util.List |
_requiredClaims
List of required claim URIs.
|
private OpenIDTokenType |
_tokenType
The requested token type (OpenID 1.1 or 2.0)
|
private static boolean |
DEBUG |
Constructor and Description |
---|
InfocardInvocation(FetchRequest fetch)
Creates an InfocardInvocation object from an Attribute Exchange
Fetch Request.
|
InfocardInvocation(OpenIDTokenType tokenType)
Creates a new InfocardInvocation object, describing Relying Party's
requirements.
|
Modifier and Type | Method and Description |
---|---|
void |
addClaim(java.lang.String claim,
boolean required)
Adds a claim URI to the required or optional claim list.
|
java.lang.String |
arrayToString(java.util.List list)
Converts a List of Strings to a space-separated string.
|
java.util.List |
getClaims(boolean required)
Gets required or optional claim URIs.
|
java.lang.String |
getHtmlObject()
Generates the HTML
|
java.lang.String |
getIssuer()
Gets the issuer URL.
|
java.lang.String |
getIssuerPolicy()
Gets the issuer policy URL, if different than "
|
java.lang.String |
getObjectParam(java.lang.String paramName,
java.lang.String paramValue)
Generates an HTML snippet for an
|
java.lang.String |
getPrivacyUrl()
Gets the Relyin Party's privacy policy URL.
|
int |
getPrivacyVersion()
Gets the Relying Party's privacy document's version.
|
OpenIDTokenType |
getTokenType()
Gets the token type.
|
java.lang.String |
getXhtml()
Generates the XHTML snippet element used to describe
the Relying Party's requirements and invoke the infocard selectors.
|
void |
setClaims(java.util.List claims,
boolean required)
Sets the list of required or optional claim URIs.
|
void |
setIssuer(java.lang.String issuer)
Sets the issuer URL.
|
void |
setIssuerPolicy(java.lang.String issuerPolicy)
Sets the issuer policy URL, if different than "
|
void |
setPrivacyData(java.lang.String url,
int version)
Sets the Relyin Party's privacy policy URL and version.
|
void |
setTokenType(OpenIDTokenType tokenType)
Sets the token type.
|
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
private OpenIDTokenType _tokenType
private java.util.List _requiredClaims
private java.util.List _optionalClaims
private java.lang.String _issuer
private java.lang.String _issuerPolicy
private java.lang.String _privacyUrl
private int _privacyVersion
public InfocardInvocation(OpenIDTokenType tokenType)
tokenType
- The required token type.public InfocardInvocation(FetchRequest fetch)
Attriute type URIs are mapped to Infocard claim URIs. Attribute value count and update_url features are cannot be expressed in InfocardInvocation data structures.
fetch
- The Fetch Request.public OpenIDTokenType getTokenType()
public void setTokenType(OpenIDTokenType tokenType)
tokenType
- public java.util.List getClaims(boolean required)
The OpenID Identifier claim is always part of the required claims list.
required
- If true, the required claims are returned; optional
claims are returned otherwise.public void addClaim(java.lang.String claim, boolean required)
claim
- The claim URI to be added.required
- If true, the clai is added to the required
claims list, otherwise it is added to the
optional claims list.public void setClaims(java.util.List claims, boolean required)
If the required claim list is set, and the OpenID Identifier claim is not part of the provided list, it is added transparently to the list.
claims
- List of claim URIs.required
- If true, the required claims list is set,
otherwise the optional claims list is set.public java.lang.String getIssuer()
public void setIssuer(java.lang.String issuer)
issuer
- public java.lang.String getIssuerPolicy()
public void setIssuerPolicy(java.lang.String issuerPolicy)
public java.lang.String getPrivacyUrl()
public int getPrivacyVersion()
public void setPrivacyData(java.lang.String url, int version)
When selectors notice a change in this value, users are prompted with the privacy policy document retrieved from the privacyUrl.
public java.lang.String getHtmlObject()
public java.lang.String getXhtml()
public java.lang.String getObjectParam(java.lang.String paramName, java.lang.String paramValue)
public java.lang.String arrayToString(java.util.List list)
Copyright 2006-2008 Sxip Identity Corporation