public class SAMLCredential
extends java.lang.Object
implements java.io.Serializable
The SAML entities (NameID, Assertion) are internally stored in SAMLObject to permit their serialization.
Constructor and Description |
---|
SAMLCredential(org.opensaml.saml2.core.NameID nameID,
org.opensaml.saml2.core.Assertion authenticationAssertion,
java.lang.String remoteEntityID,
java.util.List<org.opensaml.saml2.core.Attribute> attributes,
java.lang.String localEntityID)
Created unmodifiable SAML credential object.
|
SAMLCredential(org.opensaml.saml2.core.NameID nameID,
org.opensaml.saml2.core.Assertion authenticationAssertion,
java.lang.String remoteEntityID,
java.lang.String localEntityID)
Created unmodifiable SAML credential object.
|
SAMLCredential(org.opensaml.saml2.core.NameID nameID,
org.opensaml.saml2.core.Assertion authenticationAssertion,
java.lang.String remoteEntityID,
java.lang.String relayState,
java.util.List<org.opensaml.saml2.core.Attribute> attributes,
java.lang.String localEntityID)
Created unmodifiable SAML credential object.
|
SAMLCredential(org.opensaml.saml2.core.NameID nameID,
org.opensaml.saml2.core.Assertion authenticationAssertion,
java.lang.String remoteEntityID,
java.lang.String relayState,
java.util.List<org.opensaml.saml2.core.Attribute> attributes,
java.lang.String localEntityID,
java.io.Serializable additionalData)
Created unmodifiable SAML credential object which contains additional customer specified data.
|
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
getAdditionalData()
Custom data created by profile customization
|
org.opensaml.saml2.core.Attribute |
getAttribute(java.lang.String name)
Method searches for the first occurrence of the attribute with given name and returns it.
|
java.lang.String |
getAttributeAsString(java.lang.String name)
Method searches for the first occurrence of the Attribute with given name.
|
java.lang.String[] |
getAttributeAsStringArray(java.lang.String name)
Method searches for the first occurrence of the Attribute with given name.
|
java.util.List<org.opensaml.saml2.core.Attribute> |
getAttributes()
Unmodifiable list of all attributes loaded from the assertions received during SSO.
|
org.opensaml.saml2.core.Assertion |
getAuthenticationAssertion()
Assertion issued by IDP as part of the authentication process.
|
java.lang.String |
getLocalEntityID()
Entity ID of the local actor.
|
org.opensaml.saml2.core.NameID |
getNameID()
NameID returned from IDP as part of the authentication process.
|
java.lang.String |
getRelayState() |
java.lang.String |
getRemoteEntityID()
Entity ID of the IDP which issued the assertion.
|
public SAMLCredential(org.opensaml.saml2.core.NameID nameID, org.opensaml.saml2.core.Assertion authenticationAssertion, java.lang.String remoteEntityID, java.lang.String localEntityID)
nameID
- name ID of the authenticated entityauthenticationAssertion
- assertion used to validate the entityremoteEntityID
- identifier of IDP where the assertion came fromlocalEntityID
- local entity IDpublic SAMLCredential(org.opensaml.saml2.core.NameID nameID, org.opensaml.saml2.core.Assertion authenticationAssertion, java.lang.String remoteEntityID, java.util.List<org.opensaml.saml2.core.Attribute> attributes, java.lang.String localEntityID)
nameID
- name ID of the authenticated entityauthenticationAssertion
- assertion used to validate the entityremoteEntityID
- identifier of IDP where the assertion came fromattributes
- attributes collected from received assertionslocalEntityID
- local entity IDpublic SAMLCredential(org.opensaml.saml2.core.NameID nameID, org.opensaml.saml2.core.Assertion authenticationAssertion, java.lang.String remoteEntityID, java.lang.String relayState, java.util.List<org.opensaml.saml2.core.Attribute> attributes, java.lang.String localEntityID)
nameID
- name ID of the authenticated entity, may be nullauthenticationAssertion
- assertion used to validate the entityremoteEntityID
- identifier of IDP where the assertion came fromrelayState
- relay state received from IDP in case of unsolicited responseattributes
- attributes collected from received assertionslocalEntityID
- local entity IDpublic SAMLCredential(org.opensaml.saml2.core.NameID nameID, org.opensaml.saml2.core.Assertion authenticationAssertion, java.lang.String remoteEntityID, java.lang.String relayState, java.util.List<org.opensaml.saml2.core.Attribute> attributes, java.lang.String localEntityID, java.io.Serializable additionalData)
nameID
- name ID of the authenticated entity, may be nullauthenticationAssertion
- assertion used to validate the entityremoteEntityID
- identifier of IDP where the assertion came fromrelayState
- relay state received from IDP in case of unsolicited responseattributes
- attributes collected from received assertionslocalEntityID
- local entity IDadditionalData
- custom data created by profile customizationpublic org.opensaml.saml2.core.NameID getNameID()
public org.opensaml.saml2.core.Assertion getAuthenticationAssertion()
public java.lang.String getRemoteEntityID()
public org.opensaml.saml2.core.Attribute getAttribute(java.lang.String name)
name
- name of attribute to findpublic java.lang.String getAttributeAsString(java.lang.String name)
name
- name of attribute to findpublic java.lang.String[] getAttributeAsStringArray(java.lang.String name)
name
- name of attribute to findpublic java.util.List<org.opensaml.saml2.core.Attribute> getAttributes()
public java.lang.String getRelayState()
public java.lang.String getLocalEntityID()
public java.io.Serializable getAdditionalData()