Record Class VerificationPolicy
java.lang.Object
java.lang.Record
zeroecho.pki.api.issuance.VerificationPolicy
- Record Components:
requireProofOfPossession- whether proof-of-possession is requiredcompatibilityProfileId- optional compatibility profile hint for parsers/verifiers
public record VerificationPolicy(boolean requireProofOfPossession, Optional<String> compatibilityProfileId)
extends Record
Constraints for certification request verification.
This policy controls proof-of-possession requirements and may carry framework-specific verification modes via optional hints.
Setting requireProofOfPossession to false is suitable only
for diagnostic or policy-evaluation workflows. It cannot authorize credential
issuance; the issuance boundary always applies its own mandatory proof
policy.
-
Constructor Summary
ConstructorsConstructorDescriptionVerificationPolicy(boolean requireProofOfPossession, Optional<String> compatibilityProfileId) Creates a verification policy. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompatibilityProfileIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of therequireProofOfPossessionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VerificationPolicy
public VerificationPolicy(boolean requireProofOfPossession, Optional<String> compatibilityProfileId) Creates a verification policy.- Parameters:
requireProofOfPossession- PoP requirementcompatibilityProfileId- optional compatibility profile id- Throws:
IllegalArgumentException- ifcompatibilityProfileIdis null
-
-
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. -
requireProofOfPossession
public boolean requireProofOfPossession()Returns the value of therequireProofOfPossessionrecord component.- Returns:
- the value of the
requireProofOfPossessionrecord component
-
compatibilityProfileId
Returns the value of thecompatibilityProfileIdrecord component.- Returns:
- the value of the
compatibilityProfileIdrecord component
-