Class AbstractJOSEPayload<A>

java.lang.Object
io.inverno.mod.security.jose.internal.AbstractJOSEPayload<A>
Type Parameters:
A - the payload type
Direct Known Subclasses:
GenericJWEPayload, GenericJWSPayload

public abstract class AbstractJOSEPayload<A> extends Object

Base JOSE payload which holds the actual JOSE object payload, the serialized raw representation and the Base64URL encoded representation without padding.

Since:
1.5
Author:
Jeremy Kuhn
See Also:
  • Field Details

    • value

      protected final A value
      The payload value.
    • raw

      protected String raw
      The raw representation of the payload.
    • encoded

      protected String encoded
      The Base64URL encoded payload without padding.
  • Constructor Details

    • AbstractJOSEPayload

      public AbstractJOSEPayload(A value)

      Creates a JOSE payload.

      Parameters:
      value - the actual payload
  • Method Details

    • getValue

      public A getValue()

      Returns the actual payload

      Returns:
      the payload value
    • setRaw

      public void setRaw(String raw)

      Sets the serialized raw representation.

      Parameters:
      raw - the serialized payload
    • getRaw

      public String getRaw()

      Returns the serialized raw representation.

      Returns:
      the serialiazed payload
    • setEncoded

      public void setEncoded(String encoded)

      Sets the Base64URL encoded representation.

      Parameters:
      encoded - the Base64URL payload without padding
    • getEncoded

      public String getEncoded()

      Returns the Base64URL encoded representation.

      Returns:
      the Base64URL payload without padding
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object