Record Class ConfirmationProofSuiteBinding
java.lang.Object
java.lang.Record
zeroecho.pki.api.confirmation.ConfirmationProofSuiteBinding
- Record Components:
proofSuiteRef- exact proof-suite identity and configuration commitmentrsaMaximumModulusBits- inclusive RSA modulus-size ceiling, in bits
public record ConfirmationProofSuiteBinding(ConfirmationProofSuiteRef proofSuiteRef, int rsaMaximumModulusBits)
extends Record
Immutable portable proof-suite coordinates frozen into a confirmation challenge.
The RSA modulus bound is an exact suite configuration coordinate. This value deliberately contains no derived response-size or allocation bound.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum supported RSA modulus ceiling, in bits.static final intMinimum supported RSA modulus ceiling, in bits. -
Constructor Summary
ConstructorsConstructorDescriptionConfirmationProofSuiteBinding(ConfirmationProofSuiteRef proofSuiteRef, int rsaMaximumModulusBits) Validates the exact suite reference and inclusive modulus-size bound. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theproofSuiteRefrecord component.intReturns the value of thersaMaximumModulusBitsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MINIMUM_RSA_MAXIMUM_MODULUS_BITS
public static final int MINIMUM_RSA_MAXIMUM_MODULUS_BITSMinimum supported RSA modulus ceiling, in bits.- See Also:
-
MAXIMUM_RSA_MAXIMUM_MODULUS_BITS
public static final int MAXIMUM_RSA_MAXIMUM_MODULUS_BITSMaximum supported RSA modulus ceiling, in bits.- See Also:
-
-
Constructor Details
-
ConfirmationProofSuiteBinding
public ConfirmationProofSuiteBinding(ConfirmationProofSuiteRef proofSuiteRef, int rsaMaximumModulusBits) Validates the exact suite reference and inclusive modulus-size bound.- Throws:
NullPointerException- ifproofSuiteRefisnullIllegalArgumentException- if the modulus-size bound is outside the supported range
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
proofSuiteRef
Returns the value of theproofSuiteRefrecord component.- Returns:
- the value of the
proofSuiteRefrecord component
-
rsaMaximumModulusBits
public int rsaMaximumModulusBits()Returns the value of thersaMaximumModulusBitsrecord component.- Returns:
- the value of the
rsaMaximumModulusBitsrecord component
-