Record Class IdentityDocument
java.lang.Object
java.lang.Record
com.yahoo.vespa.athenz.identityprovider.api.IdentityDocument
public record IdentityDocument(VespaUniqueInstanceId providerUniqueId, AthenzIdentity providerService, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, URI ztsUrl, AthenzIdentity serviceIdentity, Map<String,Object> unknownAttributes)
extends Record
Represents an unsigned identity document
- Author:
- mortent
-
Constructor Summary
ConstructorDescriptionIdentityDocument
(VespaUniqueInstanceId providerUniqueId, AthenzIdentity providerService, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, URI ztsUrl, AthenzIdentity serviceIdentity) IdentityDocument
(VespaUniqueInstanceId providerUniqueId, AthenzIdentity providerService, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, URI ztsUrl, AthenzIdentity serviceIdentity, Map<String, Object> unknownAttributes) Creates an instance of aIdentityDocument
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.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.Returns the value of theproviderService
record component.Returns the value of theproviderUniqueId
record component.Returns the value of theserviceIdentity
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theunknownAttributes
record component.withServiceIdentity
(AthenzIdentity serviceIdentity) ztsUrl()
Returns the value of theztsUrl
record component.
-
Constructor Details
-
IdentityDocument
public IdentityDocument(VespaUniqueInstanceId providerUniqueId, AthenzIdentity providerService, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, URI ztsUrl, AthenzIdentity serviceIdentity, Map<String, Object> unknownAttributes) Creates an instance of aIdentityDocument
record class.- Parameters:
providerUniqueId
- the value for theproviderUniqueId
record componentproviderService
- the value for theproviderService
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
-
IdentityDocument
public IdentityDocument(VespaUniqueInstanceId providerUniqueId, AthenzIdentity providerService, String configServerHostname, String instanceHostname, Instant createdAt, Set<String> ipAddresses, IdentityType identityType, ClusterType clusterType, URI ztsUrl, AthenzIdentity serviceIdentity)
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
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
-
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
-