Record Class CryptoPolicy
java.lang.Object
java.lang.Record
org.j7m.middleware.crypto.policy.CryptoPolicy
- Record Components:
providerPolicy- provider and algorithm policyfipsModePolicy- FIPS mode policykeyRotationPolicy- key rotation policy
public record CryptoPolicy(CryptoProviderPolicy providerPolicy, FipsModePolicy fipsModePolicy, KeyRotationPolicy keyRotationPolicy)
extends Record
Enterprise cryptographic posture policy.
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoPolicy(CryptoProviderPolicy providerPolicy, FipsModePolicy fipsModePolicy, KeyRotationPolicy keyRotationPolicy) Creates default policy values when absent. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefipsModePolicyrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyRotationPolicyrecord component.Returns the value of theproviderPolicyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CryptoPolicy
public CryptoPolicy(CryptoProviderPolicy providerPolicy, FipsModePolicy fipsModePolicy, KeyRotationPolicy keyRotationPolicy) Creates default policy values when absent.
-
-
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). -
providerPolicy
Returns the value of theproviderPolicyrecord component.- Returns:
- the value of the
providerPolicyrecord component
-
fipsModePolicy
Returns the value of thefipsModePolicyrecord component.- Returns:
- the value of the
fipsModePolicyrecord component
-
keyRotationPolicy
Returns the value of thekeyRotationPolicyrecord component.- Returns:
- the value of the
keyRotationPolicyrecord component
-