Package com.sun.identity.saml2.common
Class SAML2Utils
- java.lang.Object
-
- com.sun.identity.saml2.common.SAML2SDKUtils
-
- com.sun.identity.saml2.common.SAML2Utils
-
@Supported public class SAML2Utils extends SAML2SDKUtils
TheSAML2Utils
contains utility methods for SAML 2.0 implementation.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml2.common.SAML2SDKUtils
ACTION, ADVICE, ARTIFACT, ARTIFACT_RESOLVE, ARTIFACT_RESPONSE, ASSERTION, ASSERTION_ID_REF, ASSERTION_ID_REQUEST, ATTRIBUTE, ATTRIBUTE_QUERY, ATTRIBUTE_STATEMENT, AUDIENCE_RESTRICTION, AUTHN_CONTEXT, AUTHN_QUERY, AUTHN_REQUEST, AUTHN_STATEMENT, AUTHZ_DECISION_STATEMENT, BASEID, bundle, BUNDLE_NAME, CONDITION, CONDITIONS, ECP_RELAY_STATE, ECP_REQUEST, ECP_RESPONSE, ENCRYPTED_ASSERTION, ENCRYPTED_ATTRIBUTE, ENCRYPTED_ELEMENT, ENCRYPTEDID, EVIDENCE, EXTENSIONS, GET_COMPLETE, IDPENTRY, IDPLIST, ISSUER, KEYINFO_CONFIRMATION_DATA, LOGOUT_REQUEST, LOGOUT_RESPONSE, MANAGE_NAMEID_REQUEST, MANAGE_NAMEID_RESPONSE, NAMEID, NAMEID_POLICY, NAMEIDMAPPING_REQ, NAMEIDMAPPING_RES, NEW_ENCRYPTEDID, NEWID, ONE_TIME_USE, PROXY_RESTRICTION, random, REQUESTED_AUTHN_CONTEXT, REQUESTERID, RESPONSE, SAML2ID_PREFIX, SCOPING, SESSION_INDEX, STATEMENT, STATUS, STATUS_CODE, STATUS_DETAIL, STATUS_MESSAGE, STATUS_RESPONSE, SUBJECT, SUBJECT_CONFIRMATION, SUBJECT_CONFIRMATION_DATA, SUBJECT_LOCALITY
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getReverseProxyUrl(String realm, String idpEntityId)
Retrieves the reverse proxy URL configured for the specified IDP.static com.sun.identity.saml2.meta.SAML2MetaManager
getSAML2MetaManager()
Returns an instance ofSAML2MetaManger
.static com.sun.identity.saml2.meta.SAML2MetaManager
getSAML2MetaManagerWithToken(Object token)
Returns an instance ofSAML2MetaManger
.-
Methods inherited from class com.sun.identity.saml2.common.SAML2SDKUtils
booleanValueOf, byteArrayToHexString, byteArrayToString, checkStatement, createSOAPMessageString, decodeXMLToDebugLog, fillInBasicAuthInfo, generateID, generateMessageHandle, getObjectInstance, getObjectInstance, getObjectInstance, getObjectInstance, hexStringToByteArray, intToTwoBytes, isSAMLDecryptionDebugEnabled, removeDeployUri, StringToBoolean, stringToByteArray, twoBytesToInt
-
-
-
-
Method Detail
-
getSAML2MetaManager
@Supported public static com.sun.identity.saml2.meta.SAML2MetaManager getSAML2MetaManager()
Returns an instance ofSAML2MetaManger
.- Returns:
- Instance of
SAML2MetaManager
-
getSAML2MetaManagerWithToken
@Supported public static com.sun.identity.saml2.meta.SAML2MetaManager getSAML2MetaManagerWithToken(Object token) throws com.sun.identity.saml2.meta.SAML2MetaException
Returns an instance ofSAML2MetaManger
.- Returns:
- Instance of
SAML2MetaManager
- Throws:
com.sun.identity.saml2.meta.SAML2MetaException
-
getReverseProxyUrl
@Supported public static String getReverseProxyUrl(String realm, String idpEntityId)
Retrieves the reverse proxy URL configured for the specified IDP. If no reverse proxy URL is set, an empty string will be returned.- Parameters:
realm
- Realm under which the entity resides.idpEntityId
- Entity ID of the hosted IDP.- Returns:
- The reverse proxy URL.
-
-