Record Class LegacySignedIdentityDocument
java.lang.Object
java.lang.Record
com.yahoo.vespa.athenz.identityprovider.api.LegacySignedIdentityDocument
- All Implemented Interfaces:
SignedIdentityDocument
public record LegacySignedIdentityDocument(String signature, int signingKeyVersion, int documentVersion, IdentityDocument identityDocument)
extends Record
implements SignedIdentityDocument
-
Field Summary
Fields inherited from interface com.yahoo.vespa.athenz.identityprovider.api.SignedIdentityDocument
DEFAULT_DOCUMENT_VERSION, LEGACY_DEFAULT_DOCUMENT_VERSION
-
Constructor Summary
ConstructorDescriptionLegacySignedIdentityDocument
(String signature, int signingKeyVersion, int documentVersion, IdentityDocument identityDocument) Creates an instance of aLegacySignedIdentityDocument
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of thedocumentVersion
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theidentityDocument
record component.Returns the value of thesignature
record component.int
Returns the value of thesigningKeyVersion
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.yahoo.vespa.athenz.identityprovider.api.SignedIdentityDocument
outdated
-
Constructor Details
-
LegacySignedIdentityDocument
public LegacySignedIdentityDocument(String signature, int signingKeyVersion, int documentVersion, IdentityDocument identityDocument) Creates an instance of aLegacySignedIdentityDocument
record class.- Parameters:
signature
- the value for thesignature
record componentsigningKeyVersion
- the value for thesigningKeyVersion
record componentdocumentVersion
- the value for thedocumentVersion
record componentidentityDocument
- the value for theidentityDocument
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
signature
Returns the value of thesignature
record component.- Specified by:
signature
in interfaceSignedIdentityDocument
- Returns:
- the value of the
signature
record component
-
signingKeyVersion
public int signingKeyVersion()Returns the value of thesigningKeyVersion
record component.- Specified by:
signingKeyVersion
in interfaceSignedIdentityDocument
- Returns:
- the value of the
signingKeyVersion
record component
-
documentVersion
public int documentVersion()Returns the value of thedocumentVersion
record component.- Specified by:
documentVersion
in interfaceSignedIdentityDocument
- Returns:
- the value of the
documentVersion
record component
-
identityDocument
Returns the value of theidentityDocument
record component.- Specified by:
identityDocument
in interfaceSignedIdentityDocument
- Returns:
- the value of the
identityDocument
record component
-