public class PapeMessage extends Object implements MessageExtension, MessageExtensionFactory
Encapsulates:
MessageExtension
Modifier and Type | Field and Description |
---|---|
protected ParameterList |
_parameters
The OpenID Provider Authentication Policy extension-specific parameters.
|
protected static String |
AUTH_LEVEL_NS_PREFIX |
protected static String |
AUTH_LEVEL_PREFIX |
protected Map |
authLevelAliases |
static String |
OPENID_NS_PAPE
The OpenID Provider Authentication Policy extension URI.
|
static String |
PAPE_POLICY_MULTI_FACTOR |
static String |
PAPE_POLICY_MULTI_FACTOR_PHYSICAL |
static String |
PAPE_POLICY_PHISHING_RESISTANT |
Constructor and Description |
---|
PapeMessage()
Constructs an empty (no parameters) OpenID Provider Authentication
Policy extension.
|
PapeMessage(ParameterList params)
Constructs an OpenID Provider Authentication Policy extension
with a specified list of parameters.
|
Modifier and Type | Method and Description |
---|---|
protected String |
addAuthLevelExtension(String authLevelTypeUri) |
protected String |
getCustomAuthLevelAlias(String authLevelTypeUri) |
MessageExtension |
getExtension(ParameterList parameterList,
boolean isRequest)
Instantiates the apropriate OpenID Provider Authentication Policy
extension object (request / response) for the supplied parameter
list.
|
protected Parameter |
getParameter(String name)
Gets a the value of the parameter with the specified name.
|
ParameterList |
getParameters()
Gets ParameterList containing the OpenID Provider Authentication
Policy extension-specific parameters.
|
String |
getParameterValue(String name)
Gets a the value of the parameter with the specified name.
|
String |
getTypeUri()
Gets the Type URI that identifies the OpenID Provider Authentication
Policy extension.
|
boolean |
hasCustomAuthLevel(String authLevelTypeUri) |
boolean |
hasParameter(String name)
Checks if the extension contains a parameter.
|
boolean |
providesIdentifier()
OpenID Provider Authentication Policy extension doesn't implement
authentication services.
|
protected void |
set(String name,
String value)
Sets the value for the parameter with the specified name.
|
void |
setParameters(ParameterList params)
Sets the extension's parameters to the supplied list.
|
boolean |
signRequired()
PAPE parameters are REQUIRED to be signed.
|
public static final String PAPE_POLICY_PHISHING_RESISTANT
public static final String PAPE_POLICY_MULTI_FACTOR
public static final String PAPE_POLICY_MULTI_FACTOR_PHYSICAL
protected static final String AUTH_LEVEL_PREFIX
protected static final String AUTH_LEVEL_NS_PREFIX
protected Map authLevelAliases
public static final String OPENID_NS_PAPE
protected ParameterList _parameters
The openid.
public PapeMessage()
public PapeMessage(ParameterList params)
The parameter names in the list should not contain the
openid.
public String getTypeUri()
getTypeUri
in interface MessageExtension
getTypeUri
in interface MessageExtensionFactory
public ParameterList getParameters()
The openid.
The openid.ns.
getParameters
in interface MessageExtension
Message
public void setParameters(ParameterList params)
The parameter names in the list should not contain the
openid.
setParameters
in interface MessageExtension
Message
public boolean hasParameter(String name)
name
- The name of the parameter,
without the openid.protected void set(String name, String value)
name
- The name of the parameter,
without the openid.public boolean hasCustomAuthLevel(String authLevelTypeUri)
protected Parameter getParameter(String name)
name
- The name of the parameter,
without the openid.public String getParameterValue(String name)
name
- The name of the parameter,
without the openid.public boolean providesIdentifier()
providesIdentifier
in interface MessageExtension
public boolean signRequired()
signRequired
in interface MessageExtension
public MessageExtension getExtension(ParameterList parameterList, boolean isRequest) throws MessageException
getExtension
in interface MessageExtensionFactory
parameterList
- The OpenID Provider Authentication Policy
extension specific parameters
(without the openid.isRequest
- Indicates whether the parameters were
extracted from an OpenID request (true),
or from an OpenID response.MessageException
- If a OpenID Provider Authentication Policy
extension object could not be
instantiated from the supplied parameter list.Copyright © 2013 Sxip. All Rights Reserved.