Record Class SignedIdentityDocument
java.lang.Object
java.lang.Record
com.yahoo.vespa.athenz.identityprovider.api.SignedIdentityDocument
public record SignedIdentityDocument(String signature, int signingKeyVersion, VespaUniqueInstanceId providerUniqueId, AthenzService providerService, int documentVersion, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, String ztsUrl, AthenzIdentity serviceIdentity, Map<String,Object> unknownAttributes)
extends Record
A signed identity document.
The
unknownAttributes()
member provides forward compatibility and ensures any new/unknown fields are kept intact when serialized to JSON.- Author:
- bjorncs
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSignedIdentityDocument
(String signature, int signingKeyVersion, VespaUniqueInstanceId providerUniqueId, AthenzService providerService, int documentVersion, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, String ztsUrl, AthenzIdentity serviceIdentity) SignedIdentityDocument
(String signature, int signingKeyVersion, VespaUniqueInstanceId providerUniqueId, AthenzService providerService, int documentVersion, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, String ztsUrl, AthenzIdentity serviceIdentity, Map<String, Object> unknownAttributes) Creates an instance of aSignedIdentityDocument
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclusterType
record component.Returns the value of theconfigServerHostname
record component.Returns the value of thecreatedAt
record component.int
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 theidentityType
record component.Returns the value of theinstanceHostname
record component.Returns the value of theipAddresses
record component.boolean
outdated()
Returns the value of theproviderService
record component.Returns the value of theproviderUniqueId
record component.Returns the value of theserviceIdentity
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.Returns the value of theunknownAttributes
record component.withServiceIdentity
(AthenzIdentity identity) ztsUrl()
Returns the value of theztsUrl
record component.
-
Field Details
-
DEFAULT_DOCUMENT_VERSION
public static final int DEFAULT_DOCUMENT_VERSION- See Also:
-
-
Constructor Details
-
SignedIdentityDocument
public SignedIdentityDocument(String signature, int signingKeyVersion, VespaUniqueInstanceId providerUniqueId, AthenzService providerService, int documentVersion, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, String ztsUrl, AthenzIdentity serviceIdentity, Map<String, Object> unknownAttributes) Creates an instance of aSignedIdentityDocument
record class.- Parameters:
signature
- the value for thesignature
record componentsigningKeyVersion
- the value for thesigningKeyVersion
record componentproviderUniqueId
- the value for theproviderUniqueId
record componentproviderService
- the value for theproviderService
record componentdocumentVersion
- the value for thedocumentVersion
record componentconfigServerHostname
- the value for theconfigServerHostname
record componentinstanceHostname
- the value for theinstanceHostname
record componentcreatedAt
- the value for thecreatedAt
record componentipAddresses
- the value for theipAddresses
record componentidentityType
- the value for theidentityType
record componentclusterType
- the value for theclusterType
record componentztsUrl
- the value for theztsUrl
record componentserviceIdentity
- the value for theserviceIdentity
record componentunknownAttributes
- the value for theunknownAttributes
record component
-
SignedIdentityDocument
public SignedIdentityDocument(String signature, int signingKeyVersion, VespaUniqueInstanceId providerUniqueId, AthenzService providerService, int documentVersion, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, String ztsUrl, AthenzIdentity serviceIdentity)
-
-
Method Details
-
outdated
public boolean outdated() -
withServiceIdentity
-
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.- Returns:
- the value of the
signature
record component
-
signingKeyVersion
public int signingKeyVersion()Returns the value of thesigningKeyVersion
record component.- Returns:
- the value of the
signingKeyVersion
record component
-
providerUniqueId
Returns the value of theproviderUniqueId
record component.- Returns:
- the value of the
providerUniqueId
record component
-
providerService
Returns the value of theproviderService
record component.- Returns:
- the value of the
providerService
record component
-
documentVersion
public int documentVersion()Returns the value of thedocumentVersion
record component.- Returns:
- the value of the
documentVersion
record component
-
configServerHostname
Returns the value of theconfigServerHostname
record component.- Returns:
- the value of the
configServerHostname
record component
-
instanceHostname
Returns the value of theinstanceHostname
record component.- Returns:
- the value of the
instanceHostname
record component
-
createdAt
Returns the value of thecreatedAt
record component.- Returns:
- the value of the
createdAt
record component
-
ipAddresses
Returns the value of theipAddresses
record component.- Returns:
- the value of the
ipAddresses
record component
-
identityType
Returns the value of theidentityType
record component.- Returns:
- the value of the
identityType
record component
-
clusterType
Returns the value of theclusterType
record component.- Returns:
- the value of the
clusterType
record component
-
ztsUrl
Returns the value of theztsUrl
record component.- Returns:
- the value of the
ztsUrl
record component
-
serviceIdentity
Returns the value of theserviceIdentity
record component.- Returns:
- the value of the
serviceIdentity
record component
-
unknownAttributes
Returns the value of theunknownAttributes
record component.- Returns:
- the value of the
unknownAttributes
record component
-