- All Implemented Interfaces:
Serializable, Comparable<SigContext>, java.lang.constant.Constable
Defines the context for signing with personalized hashes. See proposal 148.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAlgorithm parameter specification for personalized hash contexts in digital signatures.Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContext for datagram protocol signatures (proposal 148).Context for I2CP session configuration.Context for network database entries.No context personalization.Context for NTCP handshake signatures.Context for SSU handshake signatures.Context for streaming protocol signatures.Context for SU3 file format signatures.Test context for development.Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SigContext.SigContextSpecThe curve parameters this context uses.Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSigContext(String p) Creates a context for the named signature type.Method Summary
Modifier and TypeMethodDescriptiongetSpec()The AlgorithmParameterSpec.static SigContextReturns the enum constant of this class with the specified name.static SigContext[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
SC_NONE
No context personalization.SC_DATAGRAM
Context for datagram protocol signatures (proposal 148).SC_I2CP
Context for I2CP session configuration.SC_NETDB
Context for network database entries.SC_NTCP
Context for NTCP handshake signatures.SC_SSU
Context for SSU handshake signatures.SC_STREAMING
Context for streaming protocol signatures.SC_SU3
Context for SU3 file format signatures.SC_TEST
Test context for development.
Field Details
spec
The curve parameters this context uses.
Constructor Details
SigContext
Creates a context for the named signature type.- Parameters:
p- the name of the signature type
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
getSpec
The AlgorithmParameterSpec. Pass this as an argument in setParameter() to the Blake sign/verify engines.- Returns:
- the spec wrapping this context's personalization string