Package org.keycloak.broker.provider
Record Class X509TrustMaterial
java.lang.Object
java.lang.Record
org.keycloak.broker.provider.X509TrustMaterial
- Record Components:
trustAnchors- self signed CA roots for one trust domainrequiredExtendedKeyUsages- extended key usage OIDs of which the end entity certificate must contain at least one, an empty list imposes no restriction
public record X509TrustMaterial(Set<X509Certificate> trustAnchors, List<String> requiredExtendedKeyUsages)
extends Record
X.509 trust material and validation policy exposed by a trust material identity provider.
-
Constructor Summary
ConstructorsConstructorDescriptionX509TrustMaterial(Set<X509Certificate> trustAnchors, List<String> requiredExtendedKeyUsages) Creates an instance of aX509TrustMaterialrecord class. -
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 therequiredExtendedKeyUsagesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustAnchorsrecord component.
-
Constructor Details
-
X509TrustMaterial
Creates an instance of aX509TrustMaterialrecord class.- Parameters:
trustAnchors- the value for thetrustAnchorsrecord componentrequiredExtendedKeyUsages- the value for therequiredExtendedKeyUsagesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
trustAnchors
Returns the value of thetrustAnchorsrecord component.- Returns:
- the value of the
trustAnchorsrecord component
-
requiredExtendedKeyUsages
Returns the value of therequiredExtendedKeyUsagesrecord component.- Returns:
- the value of the
requiredExtendedKeyUsagesrecord component
-