Class TransientIdParameters
java.lang.Object
net.shibboleth.idp.saml.nameid.impl.TransientIdParameters
public class TransientIdParameters extends Object
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
Fields Modifier and Type Field Description private static String
ATTRIBUTE_RECIPIENT_FIELD
Field name of creation instant.private String
attributeRecipient
The Attribute Recipient.static String
CONTEXT
Context label for storage of IDs.private org.slf4j.Logger
log
Class logger.private String
principal
The principal.private static String
PRINCIPAL_FIELD
Field name of principal name. -
Constructor Summary
Constructors Constructor Description TransientIdParameters(String encoded)
Constructor for the decoding definitions.TransientIdParameters(String recipient, String thePrincipal)
Constructor for the attribute definition. -
Method Summary
Modifier and Type Method Description String
encode()
Encode up for storing.String
getAttributeRecipient()
Get the SP.String
getPrincipal()
Get the Principal.
-
Field Details
-
CONTEXT
Context label for storage of IDs.- See Also:
- Constant Field Values
-
ATTRIBUTE_RECIPIENT_FIELD
Field name of creation instant.- See Also:
- Constant Field Values
-
PRINCIPAL_FIELD
Field name of principal name.- See Also:
- Constant Field Values
-
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
-