public class SAMLCredential extends Object implements 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,
String remoteEntityID,
List<org.opensaml.saml2.core.Attribute> attributes,
String localEntityID)
Created unmodifiable SAML credential object.
|
SAMLCredential(org.opensaml.saml2.core.NameID nameID,
org.opensaml.saml2.core.Assertion authenticationAssertion,
String remoteEntityID,
String localEntityID)
Created unmodifiable SAML credential object.
|
SAMLCredential(org.opensaml.saml2.core.NameID nameID,
org.opensaml.saml2.core.Assertion authenticationAssertion,
String remoteEntityID,
String relayState,
List<org.opensaml.saml2.core.Attribute> attributes,
String localEntityID)
Created unmodifiable SAML credential object.
|
SAMLCredential(org.opensaml.saml2.core.NameID nameID,
org.opensaml.saml2.core.Assertion authenticationAssertion,
String remoteEntityID,
String relayState,
List<org.opensaml.saml2.core.Attribute> attributes,
String localEntityID,
Serializable additionalData)
Created unmodifiable SAML credential object which contains additional customer specified data.
|
| Modifier and Type | Method and Description |
|---|---|
Serializable |
getAdditionalData()
Custom data created by profile customization
|
org.opensaml.saml2.core.Attribute |
getAttribute(String name)
Method searches for the first occurrence of the attribute with given name and returns it.
|
String |
getAttributeAsString(String name)
Method searches for the first occurrence of the Attribute with given name.
|
String[] |
getAttributeAsStringArray(String name)
Method searches for the first occurrence of the Attribute with given name.
|
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.
|
String |
getLocalEntityID()
Entity ID of the local actor.
|
org.opensaml.saml2.core.NameID |
getNameID()
NameID returned from IDP as part of the authentication process.
|
String |
getRelayState() |
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,
String remoteEntityID,
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,
String remoteEntityID,
List<org.opensaml.saml2.core.Attribute> attributes,
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,
String remoteEntityID,
String relayState,
List<org.opensaml.saml2.core.Attribute> attributes,
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,
String remoteEntityID,
String relayState,
List<org.opensaml.saml2.core.Attribute> attributes,
String localEntityID,
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 String getRemoteEntityID()
public org.opensaml.saml2.core.Attribute getAttribute(String name)
name - name of attribute to findpublic String getAttributeAsString(String name)
name - name of attribute to findpublic String[] getAttributeAsStringArray(String name)
name - name of attribute to findpublic List<org.opensaml.saml2.core.Attribute> getAttributes()
public String getRelayState()
public String getLocalEntityID()
public Serializable getAdditionalData()