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
Why the request was refused.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe operation would continue on a streaming route, which PQC transport does not protect, and the caller did not choose it.The body was declared encrypted but was empty or did not open under the session key.The body was neither encrypted nor a plaintext problem document on an error status. -
Method Summary
Modifier and TypeMethodDescriptionstatic PqcTransportException.ReasonReturns the enum constant of this class with the specified name.static PqcTransportException.Reason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNENCRYPTED_RESPONSE
The body was neither encrypted nor a plaintext problem document on an error status. -
UNDECRYPTABLE_RESPONSE
The body was declared encrypted but was empty or did not open under the session key. -
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
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
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 nameNullPointerException- if the argument is null
-