Class TransientIdParameters
java.lang.Object
net.shibboleth.idp.saml.nameid.impl.TransientIdParameters
The Parameters we need to store in, and get out of a transient ID, namely the attribute recipient (aka the SP) and
the principal. Having this as a separate class allows streamlining of the encoding/decoding.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Field name of creation instant.private final String
The Attribute Recipient.static final String
Context label for storage of IDs.private final org.slf4j.Logger
Class logger.private final String
The principal.private static final String
Field name of principal name. -
Constructor Summary
ConstructorsConstructorDescriptionTransientIdParameters
(String encoded) Constructor for the decoding definitions.TransientIdParameters
(String recipient, String thePrincipal) Constructor for the attribute definition. -
Method Summary
-
Field Details
-
CONTEXT
Context label for storage of IDs.- See Also:
-
ATTRIBUTE_RECIPIENT_FIELD
Field name of creation instant.- See Also:
-
PRINCIPAL_FIELD
Field name of principal name.- See Also:
-
log
private final org.slf4j.Logger logClass logger. -
attributeRecipient
The Attribute Recipient. -
principal
The principal.
-
-
Constructor Details
-
TransientIdParameters
Constructor for the attribute definition.- Parameters:
recipient
- the SPthePrincipal
- the user
-
TransientIdParameters
Constructor for the decoding definitions.- Parameters:
encoded
- the JSON encoded data- Throws:
IOException
- if decoding failed
-
-
Method Details
-
getAttributeRecipient
Get the SP.- Returns:
- the sp.
-
getPrincipal
Get the Principal.- Returns:
- the principal
-
encode
Encode up for storing.- Returns:
- the encoded string.
- Throws:
IOException
- if encoding failed
-