Record Class CryptoProviderPolicy
java.lang.Object
java.lang.Record
org.j7m.middleware.crypto.policy.CryptoProviderPolicy
- Record Components:
allowedAlgorithms- allowed algorithm namesallowedProviders- allowed provider namesstrict- whether disallowed algorithms should fail closed
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoProviderPolicy(Set<String> allowedAlgorithms, Set<String> allowedProviders, boolean strict) Creates immutable policy values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedAlgorithmsrecord component.Returns the value of theallowedProvidersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanstrict()Returns the value of thestrictrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CryptoProviderPolicy
-
-
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. -
allowedAlgorithms
Returns the value of theallowedAlgorithmsrecord component.- Returns:
- the value of the
allowedAlgorithmsrecord component
-
allowedProviders
Returns the value of theallowedProvidersrecord component.- Returns:
- the value of the
allowedProvidersrecord component
-
strict
-