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 domainallowedExtendedKeyUsages- extended-key-usage OIDs accepted for end-entity certificates
public record X509TrustMaterial(Set<X509Certificate> trustAnchors, List<String> allowedExtendedKeyUsages)
extends Record
X.509 trust material and validation policy exposed by a trust-material identity provider.
-
Constructor Summary
ConstructorsConstructorDescriptionX509TrustMaterial(Set<X509Certificate> trustAnchors, List<String> allowedExtendedKeyUsages) Creates an instance of aX509TrustMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedExtendedKeyUsagesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.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 componentallowedExtendedKeyUsages- the value for theallowedExtendedKeyUsagesrecord 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
-
allowedExtendedKeyUsages
Returns the value of theallowedExtendedKeyUsagesrecord component.- Returns:
- the value of the
allowedExtendedKeyUsagesrecord component
-