|
Spring Security SAML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.saml.SAMLCredential
public class SAMLCredential
Object is a storage for entities parsed from SAML2 response during it's authentication. The object is stored as credential object inside the Authentication returned after the authentication success.
The SAML entities (NameID, Assertion) are internally stored in SAMLObject to permit their serialization.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
org.opensaml.saml2.core.Attribute |
getAttributeByName(String name)
Method searches for the first occurrence of the attribute with given name and returns it. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 customizationMethod Detail |
---|
public org.opensaml.saml2.core.NameID getNameID()
public org.opensaml.saml2.core.Assertion getAuthenticationAssertion()
public String getRemoteEntityID()
public org.opensaml.saml2.core.Attribute getAttributeByName(String name)
name
- name of attribute to find
public List<org.opensaml.saml2.core.Attribute> getAttributes()
public String getRelayState()
public String getLocalEntityID()
|
Spring Security SAML | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |