Package de.gematik.bbriccs.rest.vau
Record Class VauEncryptionEnvelope
java.lang.Object
java.lang.Record
de.gematik.bbriccs.rest.vau.VauEncryptionEnvelope
public record VauEncryptionEnvelope(VauVersion vauVersion, SecretKey decryptionKey, byte[] requestId, String accessToken, byte[] encrypted)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionVauEncryptionEnvelope(VauVersion vauVersion, SecretKey decryptionKey, byte[] requestId, String accessToken, byte[] encrypted) Creates an instance of aVauEncryptionEnveloperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.Returns the value of thedecryptionKeyrecord component.byte[]Returns the value of theencryptedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevauVersionrecord component.
-
Constructor Details
-
VauEncryptionEnvelope
public VauEncryptionEnvelope(VauVersion vauVersion, SecretKey decryptionKey, byte[] requestId, String accessToken, byte[] encrypted) Creates an instance of aVauEncryptionEnveloperecord class.- Parameters:
vauVersion- the value for thevauVersionrecord componentdecryptionKey- the value for thedecryptionKeyrecord componentrequestId- the value for therequestIdrecord componentaccessToken- the value for theaccessTokenrecord componentencrypted- the value for theencryptedrecord component
-
-
Method Details
-
requestIdAsString
-
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). -
vauVersion
Returns the value of thevauVersionrecord component.- Returns:
- the value of the
vauVersionrecord component
-
decryptionKey
Returns the value of thedecryptionKeyrecord component.- Returns:
- the value of the
decryptionKeyrecord component
-
requestId
public byte[] requestId()Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
encrypted
public byte[] encrypted()Returns the value of theencryptedrecord component.- Returns:
- the value of the
encryptedrecord component
-