Record Class KeyUsagePolicy
java.lang.Object
java.lang.Record
org.j7m.middleware.crypto.policy.KeyUsagePolicy
- Record Components:
keyReference- key referenceusages- allowed usage labels
Allowed usage policy for one external key reference.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyUsagePolicy(KeyReference keyReference, Set<String> usages) Creates immutable values. -
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 thekeyReferencerecord component.final StringtoString()Returns a string representation of this record class.usages()Returns the value of theusagesrecord component.
-
Constructor Details
-
KeyUsagePolicy
Creates immutable values.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
keyReference
Returns the value of thekeyReferencerecord component.- Returns:
- the value of the
keyReferencerecord component
-
usages
-