Class 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 Detail

      • ATTRIBUTE_RECIPIENT_FIELD

        private static final String ATTRIBUTE_RECIPIENT_FIELD
        Field name of creation instant.
        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 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 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