public class AuthSuccess extends Message
Modifier and Type | Field and Description |
---|---|
protected List |
_signExtensions |
protected List |
_signFields |
protected static List |
optionalFields |
protected static List |
requiredFields |
protected static String |
signRequired1 |
protected static String |
signRequired2 |
protected static String |
signRequired3 |
_destinationUrl, MODE_CANCEL, MODE_IDRES, MODE_SETUP_NEEDED, OPENID2_NS
Modifier | Constructor and Description |
---|---|
protected |
AuthSuccess(ParameterList params) |
protected |
AuthSuccess(String opEndpoint,
String claimedId,
String delegate,
boolean compatibility,
String returnTo,
String nonce,
String invalidateHandle,
Association assoc,
boolean signNow) |
Modifier and Type | Method and Description |
---|---|
void |
addSignExtension(String extensionNamespace)
Adds the list of messages fields that will be signed, in addition to
the ones required by the protocol to be signed and any additional
fields already configured to be signed.
|
void |
buildSignedList()
Builds the list of fields that will be signed.
|
static AuthSuccess |
createAuthSuccess(ParameterList params) |
static AuthSuccess |
createAuthSuccess(String opEndpoint,
String claimedId,
String delegate,
boolean compatibility,
String returnTo,
String nonce,
String invalidateHandle,
Association assoc,
boolean signNow) |
String |
getClaimed() |
String |
getHandle() |
String |
getIdentity() |
String |
getInvalidateHandle() |
String |
getMode() |
String |
getNonce() |
String |
getOpEndpoint() |
List |
getRequiredFields() |
String |
getReturnTo() |
String |
getSignature() |
String |
getSignedText()
Return the text on which the signature is applied.
|
List |
getSignExtensions() |
String |
getSignList() |
boolean |
isVersion2() |
void |
setClaimed(String claimed) |
void |
setHandle(String handle) |
void |
setIdentity(String id) |
void |
setInvalidateHandle(String handle) |
void |
setMode(String mode) |
void |
setNonce(String nonce) |
void |
setOpEndpoint(String opEndpoint) |
void |
setReturnTo(String returnTo) |
void |
setSignature(String sig) |
void |
setSignExtensions(String[] extensions)
Sets the list of messages fields that will be signed, in addition to
the ones required by the protocol to be signed and any additional
fields already configured to be signed.
|
void |
setSignFields(String userSuppliedList)
Sets the messages fields that will be signed, in addition to the ones
required by the protocol to be signed.
|
void |
validate()
Checks that all required parameters are present
|
addExtension, addExtension, addExtensionFactory, createMessage, createMessage, getDestinationUrl, getExtension, getExtensionAlias, getExtensionFactory, getExtensions, getParameter, getParameterMap, getParameters, getParameterValue, hasExtension, hasExtensionFactory, hasParameter, keyValueFormEncoding, set, wwwFormEncoding
protected static final List requiredFields
protected static final List optionalFields
protected static final String signRequired1
protected static final String signRequired2
protected static final String signRequired3
protected List _signFields
protected List _signExtensions
protected AuthSuccess(String opEndpoint, String claimedId, String delegate, boolean compatibility, String returnTo, String nonce, String invalidateHandle, Association assoc, boolean signNow) throws AssociationException
AssociationException
protected AuthSuccess(ParameterList params)
public static AuthSuccess createAuthSuccess(String opEndpoint, String claimedId, String delegate, boolean compatibility, String returnTo, String nonce, String invalidateHandle, Association assoc, boolean signNow) throws MessageException, AssociationException
MessageException
AssociationException
public static AuthSuccess createAuthSuccess(ParameterList params) throws MessageException
MessageException
public List getRequiredFields()
getRequiredFields
in class Message
public boolean isVersion2()
public void setMode(String mode) throws MessageException
MessageException
public String getMode()
public void setOpEndpoint(String opEndpoint)
public String getOpEndpoint()
public void setIdentity(String id)
public String getIdentity()
public void setClaimed(String claimed)
public String getClaimed()
public void setReturnTo(String returnTo)
public String getReturnTo()
public void setNonce(String nonce)
public String getNonce()
public void setInvalidateHandle(String handle)
public String getInvalidateHandle()
public void setHandle(String handle)
public String getHandle()
public void buildSignedList()
setSignFields(String)
setSignExtensions(String[])
This method should be called after any field additions/deletions to/from the message.
public void setSignFields(String userSuppliedList)
userSuppliedList
- Comma-separated list of fields to be signed,
without the "openid." prefixsetSignExtensions(String[])
public void setSignExtensions(String[] extensions)
extensions
- Array of extension namespace URIs to be signed.#setSignExtension
public void addSignExtension(String extensionNamespace)
extensionNamespace
- Extension namespace URI to be signed.#setSignExtensions
public List getSignExtensions()
public void setSignature(String sig)
public String getSignature()
public String getSignList()
public String getSignedText()
public void validate() throws MessageException
Message
validate
in class Message
MessageException
Copyright © 2013 Sxip. All rights reserved.