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 Details

    • CONTEXT

      @Nonnull @NotEmpty public static final String CONTEXT
      Context label for storage of IDs.
      See Also:
    • ATTRIBUTE_RECIPIENT_FIELD

      private static final String ATTRIBUTE_RECIPIENT_FIELD
      Field name of creation instant.
      See Also:
    • PRINCIPAL_FIELD

      private static final String PRINCIPAL_FIELD
      Field name of principal name.
      See Also:
    • 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 Details

    • TransientIdParameters

      public TransientIdParameters(@Nullable String recipient, @Nullable String thePrincipal)
      Constructor for the attribute definition.
      Parameters:
      recipient - the SP
      thePrincipal - 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 Details

    • 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