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 StringATTRIBUTE_RECIPIENT_FIELDField name of creation instant.private StringattributeRecipientThe Attribute Recipient.static StringCONTEXTContext label for storage of IDs.private org.slf4j.LoggerlogClass logger.private StringprincipalThe principal.private static StringPRINCIPAL_FIELDField 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode()Encode up for storing.StringgetAttributeRecipient()Get the SP.StringgetPrincipal()Get the Principal.
-
-
-
Field Detail
-
CONTEXT
@Nonnull @NotEmpty public static final String CONTEXT
Context label for storage of IDs.- See Also:
- Constant Field Values
-
ATTRIBUTE_RECIPIENT_FIELD
private static final String ATTRIBUTE_RECIPIENT_FIELD
Field name of creation instant.- See Also:
- Constant Field Values
-
PRINCIPAL_FIELD
private static final String PRINCIPAL_FIELD
Field name of principal name.- See Also:
- Constant Field Values
-
log
private final org.slf4j.Logger log
Class logger.
-
attributeRecipient
private final String attributeRecipient
The Attribute Recipient.
-
principal
private final String principal
The principal.
-
-
Constructor Detail
-
TransientIdParameters
public TransientIdParameters(@Nullable String recipient, @Nullable String thePrincipal)Constructor for the attribute definition.- Parameters:
recipient- the SPthePrincipal- the user
-
TransientIdParameters
public TransientIdParameters(@Nonnull @NotEmpty String encoded) throws IOException
Constructor for the decoding definitions.- Parameters:
encoded- the JSON encoded data- Throws:
IOException- if decoding failed
-
-
Method Detail
-
getAttributeRecipient
@Nullable public String getAttributeRecipient()
Get the SP.- Returns:
- the sp.
-
getPrincipal
@Nullable public String getPrincipal()
Get the Principal.- Returns:
- the principal
-
encode
@Nonnull public String encode() throws IOException
Encode up for storing.- Returns:
- the encoded string.
- Throws:
IOException- if encoding failed
-
-