Enum Class PqcTransportException.Reason

java.lang.Object
java.lang.Enum<PqcTransportException.Reason>
co.ankatech.ankasecure.sdk.exception.PqcTransportException.Reason
All Implemented Interfaces:
Serializable, Comparable<PqcTransportException.Reason>, Constable
Enclosing class:
PqcTransportException

public static enum PqcTransportException.Reason extends Enum<PqcTransportException.Reason>
Why the request was refused.
  • Enum Constant Details

    • UNENCRYPTED_RESPONSE

      public static final PqcTransportException.Reason UNENCRYPTED_RESPONSE
      The body was neither encrypted nor a plaintext problem document on an error status.
    • UNDECRYPTABLE_RESPONSE

      public static final PqcTransportException.Reason UNDECRYPTABLE_RESPONSE
      The body was declared encrypted but was empty or did not open under the session key.
    • STREAMING_NOT_CHOSEN

      public static final PqcTransportException.Reason STREAMING_NOT_CHOSEN
      The operation would continue on a streaming route, which PQC transport does not protect, and the caller did not choose it. The message names the streaming operation to call instead.
  • Method Details

    • values

      public static PqcTransportException.Reason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PqcTransportException.Reason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null