|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml2.common.SAML2SDKUtils
The SAML2SDKUtils
contains utility methods for SAML 2.0
implementation.
Field Summary | |
static java.lang.String |
ACTION
|
static java.lang.String |
ADVICE
|
static java.lang.String |
ARTIFACT
|
static java.lang.String |
ARTIFACT_RESOLVE
|
static java.lang.String |
ARTIFACT_RESPONSE
|
static java.lang.String |
ASSERTION
|
static java.lang.String |
ATTRIBUTE
|
static java.lang.String |
ATTRIBUTE_STATEMENT
|
static java.lang.String |
AUDIENCE_RESTRICTION
|
static java.lang.String |
AUTHN_CONTEXT
|
static java.lang.String |
AUTHN_REQUEST
|
static java.lang.String |
AUTHN_STATEMENT
|
static java.lang.String |
AUTHZ_DECISION_STATEMENT
|
static java.lang.String |
BASEID
|
static java.util.ResourceBundle |
bundle
|
static java.lang.String |
BUNDLE_NAME
|
static java.lang.String |
CONDITION
|
static java.lang.String |
CONDITIONS
|
static Debug |
debug
|
static java.lang.String |
ENCRYPTED_ASSERTION
|
static java.lang.String |
ENCRYPTED_ATTRIBUTE
|
static java.lang.String |
ENCRYPTED_ELEMENT
|
static java.lang.String |
ENCRYPTEDID
|
static java.lang.String |
EVIDENCE
|
static java.lang.String |
EXTENSIONS
|
static java.lang.String |
GET_COMPLETE
|
static java.lang.String |
IDPENTRY
|
static java.lang.String |
IDPLIST
|
static java.lang.String |
ISSUER
|
static java.lang.String |
KEYINFO_CONFIRMATION_DATA
|
static java.lang.String |
LOGOUT_REQUEST
|
static java.lang.String |
LOGOUT_RESPONSE
|
static java.lang.String |
MANAGE_NAMEID_REQUEST
|
static java.lang.String |
MANAGE_NAMEID_RESPONSE
|
static java.lang.String |
NAMEID
|
static java.lang.String |
NAMEID_POLICY
|
static java.lang.String |
NEW_ENCRYPTEDID
|
static java.lang.String |
NEWID
|
static java.lang.String |
ONE_TIME_USE
|
static java.lang.String |
PROXY_RESTRICTION
|
static java.security.SecureRandom |
random
|
static java.lang.String |
REQUESTED_AUTHN_CONTEXT
|
static java.lang.String |
REQUESTERID
|
static java.lang.String |
RESPONSE
|
static java.lang.String |
SCOPING
|
static java.lang.String |
SESSION_INDEX
|
static java.lang.String |
STATEMENT
|
static java.lang.String |
STATUS
|
static java.lang.String |
STATUS_CODE
|
static java.lang.String |
STATUS_DETAIL
|
static java.lang.String |
STATUS_MESSAGE
|
static java.lang.String |
STATUS_RESPONSE
|
static java.lang.String |
SUBJECT
|
static java.lang.String |
SUBJECT_CONFIRMATION
|
static java.lang.String |
SUBJECT_CONFIRMATION_DATA
|
static java.lang.String |
SUBJECT_LOCALITY
|
Constructor Summary | |
SAML2SDKUtils()
|
Method Summary | |
static java.lang.String |
byteArrayToHexString(byte[] byteArray)
Converts byte array to Hex String. |
static java.lang.String |
byteArrayToString(byte[] bytes)
Converts byte array to String. |
static boolean |
checkStatement(org.w3c.dom.Element element,
java.lang.String statementname)
Verifies if an element is a type of a specific statement. |
static java.lang.String |
generateID()
Generates ID. |
static java.lang.String |
generateMessageHandle()
Generates message handle used in an Artifact . |
static java.lang.Object |
getObjectInstance(java.lang.String iName)
Returns default object instance for a given interface. |
static java.lang.Object |
getObjectInstance(java.lang.String iName,
byte[] typecode,
int endpointIndex,
java.lang.String sourceID,
java.lang.String messageHandle)
Returns new object instance with given parameters. |
static java.lang.Object |
getObjectInstance(java.lang.String iName,
org.w3c.dom.Element value)
Returns new object instance taking Element parameter in constructor. |
static java.lang.Object |
getObjectInstance(java.lang.String iName,
java.lang.String value)
Returns new object instance taking String parameter in constructor. |
static byte[] |
hexStringToByteArray(java.lang.String hexString)
Converts Hex String to Byte Array. |
static byte[] |
intToTwoBytes(int i)
Converts integer to byte array. |
static boolean |
isFM()
Returns whether the existing installation is FM or AM. |
static byte[] |
stringToByteArray(java.lang.String input)
Converts String to Byte Array. |
static int |
twoBytesToInt(byte[] bytes)
Converts two bytes to an integer. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static Debug debug
public static final java.lang.String BUNDLE_NAME
public static java.util.ResourceBundle bundle
public static java.security.SecureRandom random
public static final java.lang.String ACTION
public static final java.lang.String ADVICE
public static final java.lang.String ASSERTION
public static final java.lang.String ATTRIBUTE
public static final java.lang.String ATTRIBUTE_STATEMENT
public static final java.lang.String AUDIENCE_RESTRICTION
public static final java.lang.String AUTHN_CONTEXT
public static final java.lang.String AUTHN_STATEMENT
public static final java.lang.String AUTHZ_DECISION_STATEMENT
public static final java.lang.String BASEID
public static final java.lang.String CONDITION
public static final java.lang.String CONDITIONS
public static final java.lang.String ENCRYPTED_ASSERTION
public static final java.lang.String ENCRYPTED_ATTRIBUTE
public static final java.lang.String ENCRYPTED_ELEMENT
public static final java.lang.String ENCRYPTEDID
public static final java.lang.String EVIDENCE
public static final java.lang.String ISSUER
public static final java.lang.String KEYINFO_CONFIRMATION_DATA
public static final java.lang.String NAMEID
public static final java.lang.String ONE_TIME_USE
public static final java.lang.String PROXY_RESTRICTION
public static final java.lang.String STATEMENT
public static final java.lang.String SUBJECT_CONFIRMATION_DATA
public static final java.lang.String SUBJECT_CONFIRMATION
public static final java.lang.String SUBJECT
public static final java.lang.String SUBJECT_LOCALITY
public static final java.lang.String ARTIFACT
public static final java.lang.String ARTIFACT_RESOLVE
public static final java.lang.String ARTIFACT_RESPONSE
public static final java.lang.String AUTHN_REQUEST
public static final java.lang.String EXTENSIONS
public static final java.lang.String GET_COMPLETE
public static final java.lang.String IDPENTRY
public static final java.lang.String IDPLIST
public static final java.lang.String LOGOUT_REQUEST
public static final java.lang.String LOGOUT_RESPONSE
public static final java.lang.String MANAGE_NAMEID_REQUEST
public static final java.lang.String MANAGE_NAMEID_RESPONSE
public static final java.lang.String NAMEID_POLICY
public static final java.lang.String NEW_ENCRYPTEDID
public static final java.lang.String NEWID
public static final java.lang.String REQUESTED_AUTHN_CONTEXT
public static final java.lang.String REQUESTERID
public static final java.lang.String RESPONSE
public static final java.lang.String SCOPING
public static final java.lang.String SESSION_INDEX
public static final java.lang.String STATUS_CODE
public static final java.lang.String STATUS_DETAIL
public static final java.lang.String STATUS
public static final java.lang.String STATUS_MESSAGE
public static final java.lang.String STATUS_RESPONSE
Constructor Detail |
public SAML2SDKUtils()
Method Detail |
public static java.lang.Object getObjectInstance(java.lang.String iName)
iName
- name of the interface.
public static java.lang.Object getObjectInstance(java.lang.String iName, java.lang.String value)
iName
- name of the interface.value
- String value to be used as parameter in constructor.
public static java.lang.Object getObjectInstance(java.lang.String iName, org.w3c.dom.Element value)
iName
- name of the interface.value
- Element value to be used as parameter in constructor.
public static java.lang.Object getObjectInstance(java.lang.String iName, byte[] typecode, int endpointIndex, java.lang.String sourceID, java.lang.String messageHandle)
iName
- name of the interface.typecode
- type code.endpointIndex
- end point index.sourceID
- source ID.messageHandle
- message handler.
public static boolean isFM()
public static boolean checkStatement(org.w3c.dom.Element element, java.lang.String statementname)
element
- a DOM Element which needs to be verified.statementname
- A specific name of a statement, for example,
AuthnStatement, AuthzStatement or AttributeStatement
true
if the element is of the specific type;
false
otherwise.public static java.lang.String byteArrayToString(byte[] bytes)
bytes
- Byte Array to be converted.
public static byte[] intToTwoBytes(int i) throws SAML2Exception
i
- an integer value between 0 and 65535.
SAML2Exception
- if the input is not between 0 and 65535.public static int twoBytesToInt(byte[] bytes) throws SAML2Exception
bytes
- byte array whose length is 2.
SAML2Exception
- if the input is null or the length is not 2.public static java.lang.String generateMessageHandle()
Artifact
.
public static byte[] stringToByteArray(java.lang.String input)
input
- String to be converted.
public static java.lang.String byteArrayToHexString(byte[] byteArray)
Hex
String.
byteArray
- Byte Array to be converted.
public static byte[] hexStringToByteArray(java.lang.String hexString)
Hex
String to Byte Array.
hexString
- Hex
String to be converted.
public static java.lang.String generateID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |