Package org.forgerock.am.saml2.profile
Class Saml2SsoResult
java.lang.Object
org.forgerock.am.saml2.profile.Saml2SsoResult
This POJO contains information collated during SAML2 response processing.
-
Constructor Summary
ConstructorDescriptionSaml2SsoResult
(String universalId, NameID nameId, Set<PrivateKey> decryptionKeys, boolean shouldPersistNameId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the decryption keys that can be used to decrypt the attributes in the assertion.Returns the NameID object from the assertion.Returns the user's universal ID.boolean
Returns whether the NameID mapping should be stored in the user data store.
-
Constructor Details
-
Saml2SsoResult
public Saml2SsoResult(String universalId, NameID nameId, Set<PrivateKey> decryptionKeys, boolean shouldPersistNameId) Constructor.- Parameters:
universalId
- The user's universal ID. May be null if the account mapping was unsuccessful.nameId
- The the potentially decrypted NameID object.decryptionKeys
- The decryption keys to use when SAML2 attributes need to be decrypted.shouldPersistNameId
- Whether the account link needs to be persisted.
-
-
Method Details
-
getUniversalId
Returns the user's universal ID.- Returns:
- The user's universal ID. May be null.
-
getNameId
Returns the NameID object from the assertion.- Returns:
- The NameID object.
-
getDecryptionKeys
Returns the decryption keys that can be used to decrypt the attributes in the assertion.- Returns:
- The decryption keys.
-
shouldPersistNameId
public boolean shouldPersistNameId()Returns whether the NameID mapping should be stored in the user data store.- Returns:
- Whether the NameID mapping should be stored in the user data store.
-