Enum Payload.Origin

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Payload.Origin>
    Enclosing class:
    Payload

    public static enum Payload.Origin
    extends java.lang.Enum<Payload.Origin>
    Enumeration of the original data types used to create a Payload.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BASE64URL
      The payload was created from a Base64URL-encoded object.
      BYTE_ARRAY
      The payload was created from a byte array.
      JSON
      The payload was created from a JSON object.
      JWS_OBJECT
      The payload was created from a JWS object.
      SIGNED_JWT
      The payload was created from a signed JSON Web Token (JWT).
      STRING
      The payload was created from a string.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Payload.Origin valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Payload.Origin[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • JSON

        public static final Payload.Origin JSON
        The payload was created from a JSON object.
      • STRING

        public static final Payload.Origin STRING
        The payload was created from a string.
      • BYTE_ARRAY

        public static final Payload.Origin BYTE_ARRAY
        The payload was created from a byte array.
      • BASE64URL

        public static final Payload.Origin BASE64URL
        The payload was created from a Base64URL-encoded object.
      • JWS_OBJECT

        public static final Payload.Origin JWS_OBJECT
        The payload was created from a JWS object.
      • SIGNED_JWT

        public static final Payload.Origin SIGNED_JWT
        The payload was created from a signed JSON Web Token (JWT).
    • Method Detail

      • values

        public static Payload.Origin[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Payload.Origin c : Payload.Origin.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Payload.Origin valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null