Package zeroecho.pki.impl.framework.x509
Record Class X509ComponentCatalog.Component
java.lang.Object
java.lang.Record
zeroecho.pki.impl.framework.x509.X509ComponentCatalog.Component
- Record Components:
id- stable namespaced contribution identifierkind- closed component kindidentity- exact provider-independent identityoid- standard dotted-decimal OIDbuiltIn- whether the entry is non-overridable built-in authority
- Enclosing class:
X509ComponentCatalog
public static record X509ComponentCatalog.Component(String id, X509ComponentCatalog.Kind kind, AlgorithmIdentity identity, String oid, boolean builtIn)
extends Record
Immutable component binding.
-
Constructor Summary
ConstructorsConstructorDescriptionComponent(String id, X509ComponentCatalog.Kind kind, AlgorithmIdentity identity, String oid, boolean builtIn) Creates a component. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbuiltIn()Returns the value of thebuiltInrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.identity()Returns the value of theidentityrecord component.kind()Returns the value of thekindrecord component.oid()Returns the value of theoidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Component
public Component(String id, X509ComponentCatalog.Kind kind, AlgorithmIdentity identity, String oid, boolean builtIn) Creates a component.- Throws:
NullPointerException- if a required field isnull
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
oid
Returns the value of theoidrecord component.- Returns:
- the value of the
oidrecord component
-
builtIn
public boolean builtIn()Returns the value of thebuiltInrecord component.- Returns:
- the value of the
builtInrecord component
-