Package de.gematik.bbriccs.vsdm.types
Record Class VsdmKey
java.lang.Object
java.lang.Record
de.gematik.bbriccs.vsdm.types.VsdmKey
-
Constructor Summary
ConstructorsConstructorDescriptionVsdmKey(byte[] key, VsdmKeyVersion keyVersion) Creates an instance of aVsdmKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.org.bouncycastle.crypto.params.KeyParameterDerive an 128-Bit AES key from HMAC Key Requirement A_27286inthashCode()Returns a hash code value for this object.byte[]key()Returns the value of thekeyrecord component.Returns the value of thekeyVersionrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
VsdmKey
Creates an instance of aVsdmKeyrecord class.- Parameters:
key- the value for thekeyrecord componentkeyVersion- the value for thekeyVersionrecord component
-
-
Method Details
-
getKeyForVersion1
public org.bouncycastle.crypto.params.KeyParameter getKeyForVersion1() -
getKeyForVersion2
Derive an 128-Bit AES key from HMAC Key Requirement A_27286- Returns:
- the derived AES key
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
key
public byte[] key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
keyVersion
Returns the value of thekeyVersionrecord component.- Returns:
- the value of the
keyVersionrecord component
-