Package io.smallrye.certs.pem.der
Record Class ASN1ObjectIdentifier
java.lang.Object
java.lang.Record
io.smallrye.certs.pem.der.ASN1ObjectIdentifier
ANS.1 encoded object identifiers.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionASN1ObjectIdentifier(byte[] value, String algorithmId) Creates an instance of aASN1ObjectIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmIdrecord component.final booleanIndicates whether some other object is "equal to" this one.static ASN1ObjectIdentifierstatic StringgetAlgorithmId(byte[] content) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.byte[]value()Returns the value of thevaluerecord component.
-
Field Details
-
OID_1_2_840_113549_1_1_1
PKCS #1 (RSA Encryption)
-
-
Constructor Details
-
ASN1ObjectIdentifier
Creates an instance of aASN1ObjectIdentifierrecord class.- Parameters:
value- the value for thevaluerecord componentalgorithmId- the value for thealgorithmIdrecord component
-
-
Method Details
-
from
-
getAlgorithmId
-
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). -
value
public byte[] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
algorithmId
Returns the value of thealgorithmIdrecord component.- Returns:
- the value of the
algorithmIdrecord component
-