Uses of Class
com.sun.identity.saml2.common.SAML2Exception
Packages that use SAML2Exception
Package
Description
Defines SAMLv2 assertion.
Defines common SAMLv2 utilities and constants.
Defines classes for SAMLv2 ECP profile.
Defines SAMLv2 Plugin SPIs.
Contains classes to be used by the SAML2 scripted plugins.
Package that handles SAML v2 profiles.
SAMLv2 Protocol Classes.
Defines classes to handle XACML requests.
Defines common XACML Utilities and Constants
Defines XACML2 context classes
Defines XACML Context implementations.
Defines XACML Policy implementations.
Defines XACML implementations for SAMLv2.
This package contains the implementation of the SAML2 client APIs.
Federation plugin root url classes.
This package contains the API for writing SAML federation plugins.
-
Uses of SAML2Exception in com.sun.identity.saml2.assertion
Methods in com.sun.identity.saml2.assertion that throw SAML2ExceptionModifier and TypeMethodDescriptionAssertionFactory.createAction
(String xml) Returns a new instance ofAction
.AssertionFactory.createAction
(Element elem) Returns a new instance ofAction
.AssertionFactory.createAdvice
(String xml) Returns a new instance ofAdvice
The return object is immutable.AssertionFactory.createAdvice
(Element elem) Returns a new instance ofAdvice
.AssertionFactory.createAssertion
(String xml) Returns a new instance ofAssertion
.AssertionFactory.createAssertion
(Element elem) Returns a new instance ofAssertion
.AssertionFactory.createAssertionIDRef
(String xml) Returns a new instance ofAssertionIDRef
.AssertionFactory.createAssertionIDRef
(Element elem) Returns a new instance ofAssertionIDRef
.AssertionFactory.createAttribute
(String xml) Returns a new instance ofAttribute
.AssertionFactory.createAttribute
(Element elem) Returns a new instance ofAttribute
.AssertionFactory.createAttributeStatement
(String xml) Returns a new instance ofAttributeStatement
.AssertionFactory.createAttributeStatement
(Element elem) Returns a new instance ofAttributeStatement
.AssertionFactory.createAudienceRestriction
(String xml) Returns a new instance ofAudienceRestriction
.AssertionFactory.createAudienceRestriction
(Element elem) Returns a new instance ofAudienceRestriction
.AssertionFactory.createAuthnContext
(String xml) Returns a new instance ofAuthnContext
.AssertionFactory.createAuthnContext
(Element elem) Returns a new instance ofAuthnContext
.AssertionFactory.createAuthnStatement
(String xml) Returns a new instance ofAuthnStatement
.AssertionFactory.createAuthnStatement
(Element elem) Returns a new instance ofAuthnStatement
.AssertionFactory.createAuthzDecisionStatement
(String xml) Returns a new instance ofAuthzDecisionStatement
.AssertionFactory.createAuthzDecisionStatement
(Element elem) Returns a new instance ofAuthzDecisionStatement
.AssertionFactory.createBaseID
(String xml) Returns a new instance ofBaseID
.AssertionFactory.createBaseID
(Element elem) Returns a new instance ofBaseID
.AssertionFactory.createCondition
(String xml) Returns a new instance ofCondition
.AssertionFactory.createCondition
(Element elem) Returns a new instance ofCondition
.AssertionFactory.createConditions
(String xml) Returns a new instance ofConditions
.AssertionFactory.createConditions
(Element elem) Returns a new instance ofConditions
.AssertionFactory.createEncryptedAssertion
(String xml) Returns a new instance ofEncryptedAssertion
.AssertionFactory.createEncryptedAssertion
(Element elem) Returns a new instance ofEncryptedAssertion
.AssertionFactory.createEncryptedAttribute
(String xml) Returns a new instance ofEncryptedAttribute
.AssertionFactory.createEncryptedAttribute
(Element elem) Returns a new instance ofEncryptedAttribute
.AssertionFactory.createEncryptedID
(String xml) Returns a new instance ofEncryptedID
.AssertionFactory.createEncryptedID
(Element elem) Returns a new instance ofEncryptedID
.AssertionFactory.createEvidence
(String xml) Returns a new instance ofEvidence
.AssertionFactory.createEvidence
(Element elem) Returns a new instance ofEvidence
.AssertionFactory.createIssuer
(String xml) Returns a new instance ofIssuer
.AssertionFactory.createIssuer
(Element elem) Returns a new instance ofIssuer
.AssertionFactory.createKeyInfoConfirmationData
(String xml) Returns a new instance ofKeyInfoConfirmationData
.AssertionFactory.createKeyInfoConfirmationData
(Element elem) Returns a new instance ofKeyInfoConfirmationData
.AssertionFactory.createNameID
(String xml) Returns a new instance ofNameID
.AssertionFactory.createNameID
(Element elem) Returns a new instance ofNameID
.AssertionFactory.createOneTimeUse
(String xml) Returns a new instance ofOneTimeUse
.AssertionFactory.createOneTimeUse
(Element elem) Returns a new instance ofOneTimeUse
.AssertionFactory.createProxyRestriction
(String xml) Returns a new instance ofProxyRestriction
.AssertionFactory.createProxyRestriction
(Element elem) Returns a new instance ofProxyRestriction
.AssertionFactory.createSubject
(String xml) Returns a new instance ofSubject
.AssertionFactory.createSubject
(Element elem) Returns a new instance ofSubject
.AssertionFactory.createSubjectConfirmation
(String xml) Returns a new instance ofSubjectConfirmation
.AssertionFactory.createSubjectConfirmation
(Element elem) Returns a new instance ofSubjectConfirmation
.AssertionFactory.createSubjectConfirmationData
(String xml) Returns a new instance ofSubjectConfirmationData
.AssertionFactory.createSubjectConfirmationData
(Element elem) Returns a new instance ofSubjectConfirmationData
.AssertionFactory.createSubjectLocality
(String xml) Returns a new instance ofSubjectLocality
.AssertionFactory.createSubjectLocality
(Element elem) Returns a new instance ofSubjectLocality
.EncryptedAssertion.decrypt
(Set<PrivateKey> privateKeys) Decrypt the encrypted assertion.EncryptedAttribute.decrypt
(Set<PrivateKey> privateKeys) Returns an instance ofAttribute
object.EncryptedID.decrypt
(Set<PrivateKey> privateKeys) Decrypts the encrypted ID.Assertion.encrypt
(com.sun.identity.saml2.key.EncryptionConfig encryptionConfig, String recipientEntityID) Returns anEncryptedAssertion
object.Attribute.encrypt
(com.sun.identity.saml2.key.EncryptionConfig encryptionConfig, String recipientEntityID) Returns anEncryptedAttribute
object.NameID.encrypt
(com.sun.identity.saml2.key.EncryptionConfig encryptionConfig, String recipientEntityID) Returns anEncryptedID
object.boolean
Assertion.isSignatureValid
(Set<X509Certificate> verificationCerts) Return whether the signature is valid or not.void
Sets theAction
(s) of the statement.void
Advice.setAdditionalInfo
(List info) Sets a list of additional informationvoid
SubjectConfirmationData.setAddress
(String value) Sets the network address/location from which an attesting entity can present the assertionvoid
SubjectLocality.setAddress
(String value) Sets the value of theAddress
attribute.void
Sets the advice of the assertionvoid
Attribute.setAnyAttribute
(Map value) Sets theanyAttribute
of the attribute.void
Evidence.setAssertion
(List<Assertion> value) Sets theAssertion
(s) in the element.void
Evidence.setAssertionIDRef
(List<AssertionIDRef> value) Sets theAssertionIDRef
(s) in the element.void
Advice.setAssertionIDRefs
(List<AssertionIDRef> idRefs) Sets a list ofAssertionIDRef
void
Advice.setAssertions
(List<Assertion> assertions) Sets a list ofAssertion
void
Evidence.setAssertionURIRef
(List value) Sets theAssertionURIRef
(s) in the element.void
Advice.setAssertionURIRefs
(List uriRefs) Sets a list ofAssertionURIRef
void
AttributeStatement.setAttribute
(List<Attribute> value) SetsAttribute
(s) of the statement.void
Assertion.setAttributeStatements
(List<AttributeStatement> statements) Sets the attribute statements of the assertionvoid
Attribute.setAttributeValue
(List value) Sets theAttributeValue
(s) of theAttribute
.void
Attribute.setAttributeValueString
(List value) Sets the value ofAttributeValue
element(s).void
AudienceRestriction.setAudience
(List<String> audiences) Sets the audiencesvoid
ProxyRestriction.setAudience
(List<String> audiences) Sets the list of audiences to whom the asserting party permits new assertions to be issued on the basis of this assertion.void
Conditions.setAudienceRestrictions
(List<AudienceRestriction> ars) Sets a list ofAudienceRestriction
void
AuthnContext.setAuthenticatingAuthority
(List<String> value) Sets the value of theAuthenticatingAuthority
property.void
AuthnStatement.setAuthnContext
(AuthnContext value) Sets the value of theAuthnContext
property.void
AuthnContext.setAuthnContextClassRef
(String value) Sets the value of theAuthnContextClassRef
property.void
AuthnContext.setAuthnContextDecl
(String value) Sets the value of theAuthnContextDecl
property.void
AuthnContext.setAuthnContextDeclRef
(String value) Sets the value of theAuthnContextDeclRef
property.void
AuthnStatement.setAuthnInstant
(Date value) Sets the value of theAuthnInstant
attribute.void
Assertion.setAuthnStatements
(List<AuthnStatement> statements) Sets theAuthnStatements
of the assertionvoid
Assertion.setAuthzDecisionStatements
(List<AuthzDecisionStatement> statements) Sets theAuthzDecisionStatements
of the assertionvoid
Sets the identifier inBaseID
formatvoid
Sets the base IDvoid
Assertion.setConditions
(Conditions conditions) Sets the conditions of the assertionvoid
Conditions.setConditions
(List<Condition> conditions) Sets a list ofCondition
void
SubjectConfirmationData.setContent
(List content) Sets a list of arbitrary XML elements to be added to thisSubjectConfirmationData
object.void
SubjectConfirmationData.setContentType
(String attribute) Sets the content type attributevoid
ProxyRestriction.setCount
(int value) Sets the maximum number of indirections that the asserting party permits to exist between this assertion and an assertion which has ultimately been issued on the basis of it.void
AuthzDecisionStatement.setDecision
(String value) Sets theDecision
attribute.void
SubjectLocality.setDNSName
(String value) Sets the value of theDNSName
attribute.void
Evidence.setEncryptedAssertion
(List<EncryptedAssertion> value) Sets theEncryptedAssertion
(s) in the element.void
Advice.setEncryptedAssertions
(List<EncryptedAssertion> encryptedAssertions) Sets a list ofEncryptedAssertion
void
AttributeStatement.setEncryptedAttribute
(List<EncryptedAttribute> value) SetsEncryptedAttribute
(s) of the statement.void
Subject.setEncryptedID
(EncryptedID value) Sets the encrypted identifiervoid
SubjectConfirmation.setEncryptedID
(EncryptedID value) Sets the encrypted IDvoid
AuthzDecisionStatement.setEvidence
(Evidence value) Sets theEvidence
of the statement.void
Sets the formatvoid
Attribute.setFriendlyName
(String value) Sets theFriendlyName
of the attribute.void
Sets the id of the assertionvoid
SubjectConfirmationData.setInResponseTo
(String value) Sets the ID of a SAML protocol message in response to which an attesting entity can present the assertionvoid
Assertion.setIssueInstant
(Date issueInstant) Sets the time when the assertion was issuedvoid
Sets the issuer of the assertionvoid
KeyInfoConfirmationData.setKeyInfo
(List info) Sets the key infovoid
Sets the confirmation methodvoid
Sets theName
of the attribute.void
Attribute.setNameFormat
(String value) Sets theNameFormat
of the attribute.void
Sets the identifier inNameID
formatvoid
Sets the name identifiervoid
BaseIDAbstract.setNameQualifier
(String nameQualifier) Sets the name qualifiervoid
NameIDType.setNameQualifier
(String value) Sets the name qualifiervoid
Action.setNamespace
(String value) Sets the value of theNamespace
attribute.void
Conditions.setNotBefore
(Date value) Sets the time instant before which the subject cannot be confirmed.void
SubjectConfirmationData.setNotBefore
(Date value) Sets the time instant before which the subject cannot be confirmedvoid
Conditions.setNotOnOrAfter
(Date value) Sets the time instant at which the subject can no longer be confirmed.void
SubjectConfirmationData.setNotOnOrAfter
(Date value) Sets the time instant at which the subject can no longer be confirmedvoid
Conditions.setOneTimeUses
(List<OneTimeUse> oneTimeUses) Sets a list ofOneTimeUse
void
Conditions.setProxyRestrictions
(List<ProxyRestriction> prs) Sets a list ofProxyRestriction
void
SubjectConfirmationData.setRecipient
(String value) Sets the URI specifying the entity or location to which an attesting entity can present the assertionvoid
AuthzDecisionStatement.setResource
(String value) Sets theResource
of the statement.void
AuthnStatement.setSessionIndex
(String value) Sets the value of theSessionIndex
attribute.void
AuthnStatement.setSessionNotOnOrAfter
(Date value) Sets the value of theSessionNotOnOrAfter
attribute.void
BaseIDAbstract.setSPNameQualifier
(String spNameQualifier) Sets theSP
name qualifiervoid
NameIDType.setSPNameQualifier
(String value) Sets theSP
name qualifiervoid
NameIDType.setSPProvidedID
(String value) Sets theSP
provided IDvoid
Assertion.setStatements
(List<Object> statements) Sets the statements of the assertionvoid
Assertion.setSubject
(Subject subject) Sets the subject of the assertionvoid
Subject.setSubjectConfirmation
(List<SubjectConfirmation> confirmations) Sets a list of subject confirmationsvoid
SubjectConfirmation.setSubjectConfirmationData
(SubjectConfirmationData value) Sets the subject confirmation datavoid
AuthnStatement.setSubjectLocality
(SubjectLocality value) Sets the value of theSubjectLocality
property.void
Sets the value of thisAction
.void
Sets the value of thisAssertionIDRef
.void
Sets the string-valued identifiervoid
Assertion.setVersion
(String version) Sets the version number of the assertion.void
Assertion.sign
(org.forgerock.openam.saml2.crypto.signing.SigningConfig signingConfig) Signs the Assertion.Evidence.toXMLString()
Returns a String representation of the element.Evidence.toXMLString
(boolean includeNS, boolean declareNS) Returns a String representation of the element. -
Uses of SAML2Exception in com.sun.identity.saml2.common
Subclasses of SAML2Exception in com.sun.identity.saml2.commonModifier and TypeClassDescriptionclass
This class is an extension point for all SAML related exceptions.class
This class is an extension point for invalid usernames in the SAML flow.Methods in com.sun.identity.saml2.common that throw SAML2ExceptionModifier and TypeMethodDescriptionstatic String
SAML2SDKUtils.createSOAPMessageString
(String xmlString) CreatesSOAPMessage
with the input XML String as message body.static byte[]
SAML2SDKUtils.intToTwoBytes
(int i) Converts integer to byte array.static Boolean
SAML2SDKUtils.StringToBoolean
(String str) Converts a value of XML boolean type to Boolean object.default DocumentFragment
XmlSerializable.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) Serializes the element into an XMLDocumentFragment
.default String
XmlSerializable.toXMLString()
Deprecated.default String
XmlSerializable.toXMLString
(boolean includeNSPrefix, boolean declareNS) Deprecated.static int
SAML2SDKUtils.twoBytesToInt
(byte[] bytes) Converts two bytes to an integer. -
Uses of SAML2Exception in com.sun.identity.saml2.ecp
Methods in com.sun.identity.saml2.ecp that throw SAML2ExceptionModifier and TypeMethodDescriptionECPFactory.createECPRelayState()
Returns theECPRelayState
Object.ECPFactory.createECPRelayState
(String value) Returns theECPRelayState
Object.ECPFactory.createECPRelayState
(Element value) Returns theECPRelayState
Object.ECPFactory.createECPRequest()
Returns theECPRequest
Object.ECPFactory.createECPRequest
(String value) Returns theECPRequest
Object.ECPFactory.createECPRequest
(Element value) Returns theECPRequest
Object.ECPFactory.createECPResponse()
Returns theECPResponse
Object.ECPFactory.createECPResponse
(String value) Returns theECPResponse
Object.ECPFactory.createECPResponse
(Element value) Returns theECPResponse
Object.void
Sets the value ofactor
attribute.void
Sets the value ofactor
attribute.void
Sets the value ofactor
attribute.void
ECPResponse.setAssertionConsumerServiceURL
(String url) Sets the value of theAssertionConsumerServiceURL
attribute.void
ECPRequest.setIDPList
(IDPList idpList) Sets theIDPList
Object.void
ECPRequest.setIsPassive
(Boolean isPassive) Sets the value of theIsPassive
attribute.void
Sets the value of the issuer attribute.void
ECPRelayState.setMustUnderstand
(Boolean mustUnderstand) Sets the value of themustUnderstand
attribute.void
ECPRequest.setMustUnderstand
(Boolean mustUnderstand) Sets the value of themustUnderstand
attribute.void
ECPResponse.setMustUnderstand
(Boolean mustUnderstand) Sets the value of themustUnderstand
attribute.void
ECPRequest.setProviderName
(String providerName) Sets theProviderName
attribute value.void
Sets the value of theRelayState
. -
Uses of SAML2Exception in com.sun.identity.saml2.plugins
Methods in com.sun.identity.saml2.plugins that throw SAML2ExceptionModifier and TypeMethodDescriptionvoid
AttributeAuthorityMapper.authenticateRequester
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) Checks if the attribute query requester is valid.void
AssertionIDRequestMapper.authenticateRequesterURI
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String samlAuthorityEntityID, String role, String realm) Checks if the assertion requester using URI binding is valid.AttributeAuthorityMapper.getAttributes
(Object identity, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) Returns attributes of the specifed identity.IDPAttributeMapper.getAttributes
(Object session, String hostEntityID, String remoteEntityID, String realm) Returns list of SAMLAttribute
objects for an authenticated user local attributes.SPAttributeMapper.getAttributes
(List<Attribute> attributes, String userID, String hostEntityID, String remoteEntityID, String realm) Returns the map of user attribute values for the corresponding SAMLAttribute
s.int
SPAuthnContextMapper.getAuthLevel
(RequestedAuthnContext reqCtx, AuthnContext authContext, String realm, String hostEntityID, String idpEntityID) Returns the Auth Level for theAuthContext
.IDPAuthnContextMapper.getAuthnContextFromAuthLevel
(String authLevel, String realm, String idpEntityID) ReturnsAuthnContext
that matches the authenticated level.AttributeAuthorityMapper.getIdentity
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) Returns an identity that matches the subject in the attribute query.IDPAccountMapper.getIdentity
(NameID nameID, String hostEntityID, String remoteEntityID, String realm) Returns the user's distinguished name or the universal ID for the correspondingSAML NameID
.IDPAccountMapper.getIdentity
(ManageNameIDRequest manageNameIDRequest, String hostEntityID, String realm) Returns the user's distinguished name or the universal ID for the correspondingSAML ManageNameIDRequest
.SPAccountMapper.getIdentity
(Assertion assertion, String hostEntityID, String realm) Returns the user's distinguished name or the universal ID for the correspondingSAML Assertion
.SPAccountMapper.getIdentity
(ManageNameIDRequest manageNameIDRequest, String hostEntityID, String realm) Returns the user's distinguished name or the universal ID for the correspondingSAML ManageNameIDRequest
.IDPAuthnContextMapper.getIDPAuthnContextInfo
(AuthnRequest authnRequest, String idpEntityID, String realm) Deprecated.default IDPAuthnContextInfo
IDPAuthnContextMapper.getIDPAuthnContextInfo
(AuthnRequest authnRequest, String idpEntityID, String realm, String spEntityID) Returns anIDPAuthnContextInfo
object.IDPAccountMapper.getNameID
(Object session, String hostEntityID, String remoteEntityID, String realm, String nameIDFormat) Returns the user'sNameID
information that contains account federation with the corresponding remote and local entities.SPAuthnContextMapper.getRequestedAuthnContext
(String realm, String hostEntityID, Map paramsMap) Returns theRequestedAuthnContext
Object .IDPECPSessionMapper.getSession
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Returns user valid session.void
AttributeAuthorityMapper.validateAttributeQuery
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AttributeQuery attrQuery, String attrAuthorityEntityID, String realm) Checks if the attribute query is valid. -
Uses of SAML2Exception in com.sun.identity.saml2.plugins.scripted
Methods in com.sun.identity.saml2.plugins.scripted that throw SAML2ExceptionModifier and TypeMethodDescriptionIdpAttributeMapperScriptHelper.createSAMLAttribute
(String name, String nameFormat, Set<String> values) Create a SAMLAttribute
object.IdpAttributeMapperScriptHelper.getAttributes
(Object session, Set<String> attrNames) Get attributes from a session.IdpAttributeMapperScriptHelper.getBinaryAttributes
(Object session, Set<String> attrNames) Get binary attributes from a session.IdpAttributeMapperScriptHelper.getHostedIDPConfigAttributeMap
(String realm, String hostedEntityId) Return the attribute map by parsing the configured map in hosted identity provider configuration.IdpAttributeMapperScriptHelper.getRemoteSPConfigAttributeMap
(String realm, String remoteEntityId) Return the attribute map by parsing the configured map in remote service provider configuration -
Uses of SAML2Exception in com.sun.identity.saml2.profile
Methods in com.sun.identity.saml2.profile that throw SAML2ExceptionModifier and TypeMethodDescriptionAttributeQueryUtil.getAttributesForFedlet
(String spEntityID, String idpEntityID, String nameIDValue, List<String> attrsList, String attrQueryProfileAlias, String subjectDN) Sends the AttributeQuery to specified attribute authority, validates the response and returns the attribute mapMap<String, Set<String>>
to the Fedletstatic String
XACMLQueryUtil.getPolicyDecisionForFedlet
(jakarta.servlet.http.HttpServletRequest request, String pepEntityID, String pdpEntityID, String nameIDValue, String serviceName, String resource, String action) Sends the XACML query to specifiied PDP, gets the policy decision and sends it back to the Fedletstatic NameIDMappingResponse
NameIDMapping.initiateNameIDMappingRequest
(Object session, String realm, String spEntityID, String idpEntityID, String targetSPEntityID, String targetNameIDFormat, Map paramsMap) Parses the request parameters and builds the NameIDMappingRequest to sent to remote identity provider.static Map
SPACSUtils.processResponseForFedlet
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, PrintWriter out) Processes response from Identity Provider to Fedlet (SP).static Response
AssertionIDRequestUtil.sendAssertionIDRequest
(AssertionIDRequest assertionIDRequest, String samlAuthorityEntityID, String role, String realm, String binding) Sends theAssertionIDRequest
to specifiied Assertion ID Request Service and returnsResponse
coming from the Assertion ID Request Service.static Assertion
AssertionIDRequestUtil.sendAssertionIDRequestURI
(String assertionID, String samlAuthorityEntityID, String role, String realm) Sends the Assertion ID to specifiied Assertion ID Request Service and returnsAssertion
coming from the Assertion ID Request Service.static void
AttributeQueryUtil.sendAttributeQuery
(AttributeQuery attrQuery, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String attrAuthorityEntityID, String realm, String attrQueryProfile, String attrProfile, String binding) Sends theAttributeQuery
to specified attribute authority and returnsResponse
coming from the attribute authority.static Response
AttributeQueryUtil.sendAttributeQuery
(AttributeQuery attrQuery, String attrAuthorityEntityID, String realm, String attrQueryProfile, String attrProfile, String binding) Sends theAttributeQuery
to specified attribute authority and returnsResponse
coming from the attribute authority.static Response
AuthnQueryUtil.sendAuthnQuery
(AuthnQuery authnQuery, String authnAuthorityEntityID, String realm, String binding) This method sends theAuthnQuery
to specifiied authentication authority and returnsResponse
coming from the authentication authority. -
Uses of SAML2Exception in com.sun.identity.saml2.protocol
Methods in com.sun.identity.saml2.protocol that throw SAML2ExceptionModifier and TypeMethodDescriptionProtocolFactory.createArtifact
(byte[] typecode, int endpointIndex, String sourceID, String messageHandle) Returns a new instance ofArtifact
.ProtocolFactory.createArtifact
(String encodedArtifactValue) Returns a new instance ofArtifact
.ProtocolFactory.createArtifact
(Element elem) Returns a new instance ofArtifact
.ProtocolFactory.createArtifactResolve
(String xml) Returns a new instance ofArtifactResolve
.ProtocolFactory.createArtifactResolve
(Element elem) Returns a new instance ofArtifactResolve
.ProtocolFactory.createArtifactResponse
(String xml) Returns a new instance ofArtifactResponse
.ProtocolFactory.createArtifactResponse
(Element elem) Returns a new instance ofArtifactResponse
.ProtocolFactory.createAssertionIDRequest()
Returns theAssertionIDRequest
Object.ProtocolFactory.createAssertionIDRequest
(String value) Returns theAssertionIDRequest
Object.ProtocolFactory.createAssertionIDRequest
(Element value) Returns theAssertionIDRequest
Object.ProtocolFactory.createAttributeQuery()
Returns theAttributeQuery
Object.ProtocolFactory.createAttributeQuery
(String value) Returns theAttributeQuery
Object.ProtocolFactory.createAttributeQuery
(Element value) Returns theAttributeQuery
Object.ProtocolFactory.createAuthnQuery()
Returns theAuthnQuery
Object.ProtocolFactory.createAuthnQuery
(String value) Returns theAuthnQuery
Object.ProtocolFactory.createAuthnQuery
(Element value) Returns theAuthnQuery
Object.ProtocolFactory.createAuthnRequest()
Returns theAuthnRequest
Object.ProtocolFactory.createAuthnRequest
(String value) Returns theAuthnRequest
Object.ProtocolFactory.createAuthnRequest
(Element value) Returns theAuthnRequest
Object.ProtocolFactory.createExtensions()
Returns theExtensions
Object.ProtocolFactory.createExtensions
(String value) Returns theExtensions
Object.ProtocolFactory.createExtensions
(Element value) Returns theExtensions
Object.ProtocolFactory.createGetComplete()
Returns theGetComplete
Object.ProtocolFactory.createGetComplete
(String value) Returns theGetComplete
Object.ProtocolFactory.createGetComplete
(Element value) Returns theGetComplete
Object.ProtocolFactory.createIDPEntry()
Returns theIDPEntry
Object.ProtocolFactory.createIDPEntry
(String value) Returns theIDPEntry
Object.ProtocolFactory.createIDPEntry
(Element value) Returns theIDPEntry
Object.ProtocolFactory.createIDPList()
Returns theIDPList
Object.ProtocolFactory.createIDPList
(String value) Returns theIDPList
Object.ProtocolFactory.createIDPList
(Element value) Returns theIDPList
Object.ProtocolFactory.createLogoutRequest
(String value) Returns theLogoutRequest
Object.ProtocolFactory.createLogoutRequest
(Element value) Returns theLogoutRequest
Object.ProtocolFactory.createLogoutResponse
(String value) Returns theLogoutResponse
Object.ProtocolFactory.createLogoutResponse
(Element value) Returns theLogoutResponse
Object.ProtocolFactory.createManageNameIDRequest
(String value) Returns an immutable manage name identifier request object.ProtocolFactory.createManageNameIDRequest
(Element value) Returns an immutable manage name identifier request object.ProtocolFactory.createManageNameIDResponse
(String value) Returns an immutable manage name identifier response object.ProtocolFactory.createManageNameIDResponse
(Element value) Returns an immutable manage name identifier response object.ProtocolFactory.createNameIDMappingRequest
(String value) Returns theNameIDMappingRequest
Object.ProtocolFactory.createNameIDMappingRequest
(Element elem) Returns theNameIDMappingRequest
Object.ProtocolFactory.createNameIDMappingResponse
(String value) Returns theNameIDMappingResponse
Object.ProtocolFactory.createNameIDMappingResponse
(Element elem) Returns theNameIDMappingResponse
Object.ProtocolFactory.createNameIDPolicy()
Returns theNameIDPolicy
Object.ProtocolFactory.createNameIDPolicy
(String value) Returns theNameIDPolicy
Object.ProtocolFactory.createNameIDPolicy
(Element value) Returns theNameIDPolicy
Object.ProtocolFactory.createNewEncryptedID
(String value) Returns an immutable new encrypted identifier object.ProtocolFactory.createNewEncryptedID
(Element value) Returns an immutable new encrypted identifier object.ProtocolFactory.createNewID
(String value) Returns an new identifier object.ProtocolFactory.createNewID
(Element value) Returns an new identifier object.ProtocolFactory.createRequestedAuthnContext()
Returns a mutable requested authentication context object.ProtocolFactory.createRequestedAuthnContext
(String value) Returns an immutable requested authentication context object.ProtocolFactory.createRequestedAuthnContext
(Element value) Returns an immutable requested authentication context object.ProtocolFactory.createRequesterID()
Returns theRequesterID
Object.ProtocolFactory.createRequesterID
(String value) Returns theRequesterID
Object.ProtocolFactory.createRequesterID
(Element value) Returns theRequesterID
Object.ProtocolFactory.createResponse
(String xml) Returns a new instance ofResponse
.ProtocolFactory.createResponse
(Element elem) Returns a new instance ofResponse
.ProtocolFactory.createScoping()
Returns theScoping
Object.ProtocolFactory.createScoping
(String value) Returns theScoping
Object.ProtocolFactory.createScoping
(Element value) Returns theScoping
Object.ProtocolFactory.createStatus()
Returns theStatus
Object.ProtocolFactory.createStatus
(String value) Returns theStatus
Object.ProtocolFactory.createStatus
(Element value) Returns theStatus
Object.ProtocolFactory.createStatusCode()
Returns theStatusCode
Object.ProtocolFactory.createStatusCode
(String value) Returns theStatusCode
Object.ProtocolFactory.createStatusCode
(Element value) Returns theStatusCode
Object.ProtocolFactory.createStatusDetail()
Returns theStatusDetail
Object.ProtocolFactory.createStatusDetail
(String value) Returns theStatusDetail
Object.ProtocolFactory.createStatusDetail
(Element value) Returns theStatusDetail
Object.NewEncryptedID.decrypt
(Set<PrivateKey> privateKeys) Returns an instance ofNewID
object.NewID.encrypt
(com.sun.identity.saml2.key.EncryptionConfig encryptionConfig, String recipientEntityID) Returns anNewEncryptedID
object.boolean
RequestAbstract.isSignatureValid
(Set<X509Certificate> verificationCerts) Return whether the signature is valid or not.boolean
StatusResponse.isSignatureValid
(Set<X509Certificate> verificationCerts) Returns whether the signature on theStatusResponse
is valid or not.void
NameIDPolicy.setAllowCreate
(boolean allowCreate) Sets the value ofAllowCreate
attribute.void
Sets theany
element of the response.void
Sets theExtensions
object.void
Sets the value of the Any property.void
ArtifactResolve.setArtifact
(Artifact value) Sets theArtifact
of the request.void
Response.setAssertion
(List<Assertion> value) Sets Assertion(s) of the response.void
AuthnRequest.setAssertionConsumerServiceIndex
(Integer index) Sets the value of theAssertionConsumerServiceIndex
attribute.void
AuthnRequest.setAssertionConsumerServiceURL
(String url) Sets the value of theAssertionConsumerServiceURL
attribute.void
AssertionIDRequest.setAssertionIDRefs
(List<AssertionIDRef> assertionIDRefs) Sets a list ofAssertionIDRef
Objects.void
AuthnRequest.setAttributeConsumingServiceIndex
(Integer index) Sets the value of theAttributeConsumingServiceIndex
attribute.void
AttributeQuery.setAttributes
(List<Attribute> attributes) Sets theAttribute
objects.void
RequestedAuthnContext.setAuthnContextClassRef
(List references) Sets authentication context class references.void
RequestedAuthnContext.setAuthnContextDeclRef
(List references) Sets authentication context declaration class references.void
Sets the value of the baseID property.void
Sets the value of the baseID property.void
RequestedAuthnContext.setComparison
(String value) Sets the value of theComparison
property.void
AuthnRequest.setConditions
(Conditions conditions) Sets theConditions
object.void
RequestAbstract.setConsent
(String consent) Sets the value of theConsent
attribute.void
StatusResponse.setConsent
(String value) Sets the value of the consent property.void
RequestAbstract.setDestination
(String destinationURI) Sets the value of theDestination
attribute.void
StatusResponse.setDestination
(String value) Sets the value of the destination property.void
Response.setEncryptedAssertion
(List<EncryptedAssertion> value) SetsEncryptedAssertion
(s) of the response.void
LogoutRequest.setEncryptedID
(EncryptedID value) Sets the value of the encryptedID property.void
ManageNameIDRequest.setEncryptedID
(EncryptedID value) Sets the value of theencryptedID
property.void
NameIDMappingRequest.setEncryptedID
(EncryptedID value) Sets the value of theencryptedID
property.void
NameIDMappingResponse.setEncryptedID
(EncryptedID value) Sets the value of theencryptedID
property.void
RequestAbstract.setExtensions
(Extensions extensions) Sets theExtensions
Object.void
StatusResponse.setExtensions
(Extensions value) Sets the value of the extensions property.void
AuthnRequest.setForceAuthn
(Boolean value) Sets the value of theForceAuthn
attribute.void
Sets the value of theFormat
attribute.void
IDPList.setGetComplete
(GetComplete getComplete) Sets theGetComplete
Object.void
Sets the value of theID
attribute.void
Sets the value of the id property.void
IDPList.setIDPEntries
(List<IDPEntry> idpEntryList) Sets theIDPEntry
Object.void
Scoping.setIDPList
(IDPList idpList) Sets theIDPList
Object.void
StatusResponse.setInResponseTo
(String value) Sets the value of the inResponseTo property.void
AuthnRequest.setIsPassive
(Boolean value) Sets the value of theIsPassive
attribute.void
RequestAbstract.setIssueInstant
(Date dateTime) Sets the value ofIssueInstant
attribute.void
StatusResponse.setIssueInstant
(Date value) Sets the value of the issueInstant property.void
Sets theIssuer
object.void
Sets the value of the issuer property.void
Sets the value ofLoc
attribute.void
Sets the value ofName
attribute.void
Sets the value of the nameID property.void
Sets the value of thenameID
property.void
Sets the value of thenameID
property.void
Sets the value of thenameID
property.void
AuthnRequest.setNameIDPolicy
(NameIDPolicy nameIDPolicy) Sets theNameIDPolicy
object.void
NameIDMappingRequest.setNameIDPolicy
(NameIDPolicy nameIDPolicy) Sets theNameIDPolicy
object.void
ManageNameIDRequest.setNewEncryptedID
(NewEncryptedID value) Sets the value of thenewEncryptedID
property.void
Sets the value of theNewID
property.void
LogoutRequest.setNotOnOrAfter
(Date value) Sets the value of the notOnOrAfter property.void
AuthnRequest.setProtocolBinding
(String protocolBinding) Sets the value of theProtocolBinding
attribute.void
IDPEntry.setProviderID
(String uri) Sets theProviderID
attribute value.void
AuthnRequest.setProviderName
(String providerName) Sets theProviderName
attribute value.void
Scoping.setProxyCount
(Integer proxyCount) Sets the value ofProxyCount
attribute.void
Sets the value of the reason property.void
AuthnQuery.setRequestedAuthnContext
(RequestedAuthnContext requestedAuthnContext) Sets theRequestedAuthnContext
object.void
AuthnRequest.setRequestedAuthnContext
(RequestedAuthnContext reqAuthnContext) Sets theRequestedAuthnContext
.void
Scoping.setRequesterIDs
(List<RequesterID> requesterIDList) Sets a list ofRequesterID
Objects.void
AuthnRequest.setScoping
(Scoping scoping) Sets theScoping
object.void
AuthnQuery.setSessionIndex
(String sessionIndex) Sets the value ofSessionIndex
attribute.void
LogoutRequest.setSessionIndex
(List<String> sessionIndexList) Sets the value of the SessionIndex property.void
NameIDPolicy.setSPNameQualifier
(String spNameQualifier) Sets the value ofSPNameQualifier
attribute.void
Sets the value of the status property.void
Status.setStatusCode
(StatusCode value) Sets the value of the statusCode property.void
StatusCode.setStatusCode
(StatusCode value) Sets the value of the statusCode property.void
Status.setStatusDetail
(StatusDetail value) Sets the value of the statusDetail property.void
Status.setStatusMessage
(String value) Sets the value of the statusMessage property.void
AuthnRequest.setSubject
(Subject subject) Sets theSubject
object.void
SubjectQueryAbstract.setSubject
(Subject subject) Sets theSubject
object.void
ManageNameIDRequest.setTerminate
(boolean terminate) Set this request as terminating request.void
Sets the value of theGetComplete
URI.void
Sets the value of theRequesterID
URI.void
Sets the value of the value property.void
RequestAbstract.setVersion
(String version) Sets the value of theVersion
attribute.void
StatusResponse.setVersion
(String value) Sets the value of the version property.void
RequestAbstract.sign
(org.forgerock.openam.saml2.crypto.signing.SigningConfig signingConfig) Signs the Request.void
StatusResponse.sign
(org.forgerock.openam.saml2.crypto.signing.SigningConfig signingConfig) Signs theStatusResponse
. -
Uses of SAML2Exception in com.sun.identity.xacml.client
Methods in com.sun.identity.xacml.client that throw SAML2ExceptionModifier and TypeMethodDescriptionXACMLRequestProcessor.processRequest
(Request xacmlRequest, String pdpEntityId, String pepEntityId) Processes an XACML context Request and returns an XACML context Response. -
Uses of SAML2Exception in com.sun.identity.xacml.common
Subclasses of SAML2Exception in com.sun.identity.xacml.commonModifier and TypeClassDescriptionclass
This class is an extension point for all XACML related exceptions. -
Uses of SAML2Exception in com.sun.identity.xacml.context
Methods in com.sun.identity.xacml.context that throw SAML2ExceptionModifier and TypeMethodDescriptionContextFactory.createXACMLAuthzDecisionQuery
(String xml) Returns a new instance ofXACMLAuthzDecisionQuery
.ContextFactory.createXACMLAuthzDecisionQuery
(Element elem) Returns a new instance ofXACMLAuthzDecisionQuery
. -
Uses of SAML2Exception in com.sun.identity.xacml.context.impl
Methods in com.sun.identity.xacml.context.impl that throw SAML2ExceptionModifier and TypeMethodDescriptionActionImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) AttributeImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) DecisionImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) EnvironmentImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) RequestImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) ResourceImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) StatusCodeImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) StatusDetailImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) StatusImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) StatusMessageImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) SubjectImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) -
Uses of SAML2Exception in com.sun.identity.xacml.policy.impl
Methods in com.sun.identity.xacml.policy.impl that throw SAML2ExceptionModifier and TypeMethodDescriptionObligationImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) ObligationsImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) -
Uses of SAML2Exception in com.sun.identity.xacml.saml2.impl
Methods in com.sun.identity.xacml.saml2.impl that throw SAML2ExceptionModifier and TypeMethodDescriptionprotected void
XACMLAuthzDecisionQueryImpl.parseDOMElement
(Element element) XACMLAuthzDecisionQueryImpl.toDocumentFragment
(Document document, boolean includeNSPrefix, boolean declareNS) protected void
XACMLAuthzDecisionQueryImpl.validateData()
Constructors in com.sun.identity.xacml.saml2.impl that throw SAML2ExceptionModifierConstructorDescriptionThis constructor is used to buildXACMLAuthzDecisionQuery
object from a XML string.XACMLAuthzDecisionQueryImpl
(Element element) This constructor is used to buildXACMLAuthzDecisionQuery
object from a block of existing XML that has already been built into a DOM. -
Uses of SAML2Exception in org.forgerock.am.saml2.impl
Methods in org.forgerock.am.saml2.impl that throw SAML2ExceptionModifier and TypeMethodDescriptionSaml2SsoResponseUtils.getSsoResultWithoutLocalLogin
(Realm realm, String spEntityId, String idpEntityId, Subject subject, Assertion assertion, String storageKey) Processes the received SAML2 response, without triggering local authentication.void
Saml2SsoResponseUtils.linkAccounts
(String nameIdInfo, String universalId) Sets up a persistent link between the federated account and the local user.Saml2SsoResponseUtils.mapSamlAttributes
(Realm realm, String spEntityId, String idpEntityId, Saml2SsoResult ssoResult, Assertion assertion) Maps the SAML2 attributes from the assertion to local attribute values.static void
Saml2Proxy.processSamlResponse
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Processes the SAML response for the SAML2 authentication module and then directs the user back to the authentication process differently for XUI and non-XUI cases. -
Uses of SAML2Exception in org.forgerock.openam.federation.plugin.rooturl
Methods in org.forgerock.openam.federation.plugin.rooturl that throw SAML2ExceptionModifier and TypeMethodDescriptionRootUrlProvider.getRootURL
(String realm, jakarta.servlet.http.HttpServletRequest request) Gets the AM instance root url, with the context path included. -
Uses of SAML2Exception in org.forgerock.openam.saml2.plugins
Methods in org.forgerock.openam.saml2.plugins that throw SAML2ExceptionModifier and TypeMethodDescriptiondefault boolean
FedletAdapter.doFedletSLO
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, String hostedEntityID, String idpEntityID, List siList, String nameIDValue, String binding) Invokes after Fedlet receives SLO request from IDP.IDPFinder.getPreferredIDP
(AuthnRequest authnRequest, String hostProviderID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Returns a list of preferred IDP providerID's.default void
FedletAdapter.onFedletSLOFailure
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, LogoutResponse logoutRes, String hostedEntityID, String idpEntityID, String binding) Invokes after Fedlet receives SLO response from IDP and the SLO status is not success.default void
FedletAdapter.onFedletSLOSuccess
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, LogoutResponse logoutRes, String hostedEntityID, String idpEntityID, String binding) Invokes after Fedlet receives SLO response from IDP and the SLO status is success.default boolean
SPAdapter.postSingleSignOnSuccess
(String hostedEntityID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, PrintWriter out, Object session, AuthnRequest authnRequest, Response ssoResponse, String profile, boolean isFederation) Invokes after Single-Sign-On processing succeeded.boolean
IDPAdapter.preAuthentication
(String hostedEntityID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthnRequest authnRequest, Object session, String reqID, String relayState) Invokes when OpenAM has received the authn request, processed it, and is ready to redirect to authentication.void
IDPAdapter.preSendFailureResponse
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String faultCode, String faultDetail) Deprecated, for removal: This API element is subject to removal in a future version.default void
IDPAdapter.preSendFailureResponse
(String hostedEntityID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String faultCode, String faultDetail) Called before a SAML error message is returned.boolean
IDPAdapter.preSendResponse
(AuthnRequest authnRequest, String hostProviderID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object session, String reqID, String relayState) This method is invoked before sending a non-error SAML2 Response, but before the SAML Response object is constructed.void
IDPAdapter.preSignResponse
(AuthnRequest authnRequest, Response res, String hostProviderID, String realm, jakarta.servlet.http.HttpServletRequest request, Object session, String relayState) Called after the SAML Response object is created, but before the Response is signed/encrypted.default void
SPAdapter.preSingleLogoutProcess
(String hostedEntityID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String userID, LogoutRequest logoutRequest, LogoutResponse logoutResponse, String binding) Invokes before single logout process started onSP
side.boolean
IDPAdapter.preSingleSignOn
(String hostedEntityID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthnRequest authnRequest, String reqID) Invokes when OpenAM receives the authentication request for the first time from the SP, and is called before any processing started on the IDP side.default void
SPAdapter.preSingleSignOnProcess
(String hostedEntityID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthnRequest authnRequest, Response ssoResponse, String profile) Invokes when theFAM
received the Single-Sign-On response from the IDP, this is called before any processing started on SP side.default void
SPAdapter.preSingleSignOnRequest
(String hostedEntityID, String idpEntityID, String realm, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthnRequest authnRequest) Invoked before AM sends the Single-Sign-On request to IDP.
XmlSerializable.toDocumentFragment(Document, boolean, boolean)
instead.