Record Class EndpointCertificate
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.certificates.EndpointCertificate
public record EndpointCertificate(String keyName, String certName, int version, long lastRequested, String rootRequestId, Optional<String> leafRequestId, List<String> requestedDnsSans, String issuer, Optional<Long> expiry, Optional<Long> lastRefreshed, Optional<String> randomizedId)
extends Record
This holds information about an application's endpoint certificate.
- Author:
- andreer
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointCertificate(String keyName, String certName, int version, long lastRequested, String rootRequestId, Optional<String> leafRequestId, List<String> requestedDnsSans, String issuer, Optional<Long> expiry, Optional<Long> lastRefreshed, Optional<String> randomizedId) Creates an instance of aEndpointCertificaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncertName()Returns the value of thecertNamerecord component.final booleanIndicates whether some other object is "equal to" this one.expiry()Returns the value of theexpiryrecord component.final inthashCode()Returns a hash code value for this object.issuer()Returns the value of theissuerrecord component.keyName()Returns the value of thekeyNamerecord component.Returns the value of thelastRefreshedrecord component.longReturns the value of thelastRequestedrecord component.Returns the value of theleafRequestIdrecord component.Returns the value of therandomizedIdrecord component.Returns the value of therequestedDnsSansrecord component.Returns the value of therootRequestIdrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.withCertName(String certName) withKeyName(String keyName) withLastRefreshed(long lastRefreshed) withLastRequested(long lastRequested) withLeafRequestId(Optional<String> leafRequestId) withRandomizedId(String randomizedId) withRootRequestId(String rootRequestId) withVersion(int version)
-
Constructor Details
-
EndpointCertificate
public EndpointCertificate(String keyName, String certName, int version, long lastRequested, String rootRequestId, Optional<String> leafRequestId, List<String> requestedDnsSans, String issuer, Optional<Long> expiry, Optional<Long> lastRefreshed, Optional<String> randomizedId) Creates an instance of aEndpointCertificaterecord class.- Parameters:
keyName- the value for thekeyNamerecord componentcertName- the value for thecertNamerecord componentversion- the value for theversionrecord componentlastRequested- the value for thelastRequestedrecord componentrootRequestId- the value for therootRequestIdrecord componentleafRequestId- the value for theleafRequestIdrecord componentrequestedDnsSans- the value for therequestedDnsSansrecord componentissuer- the value for theissuerrecord componentexpiry- the value for theexpiryrecord componentlastRefreshed- the value for thelastRefreshedrecord componentrandomizedId- the value for therandomizedIdrecord component
-
-
Method Details
-
withRandomizedId
-
withKeyName
-
withCertName
-
withVersion
-
withLastRequested
-
withLastRefreshed
-
withRootRequestId
-
withLeafRequestId
-
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 '=='. -
keyName
Returns the value of thekeyNamerecord component.- Returns:
- the value of the
keyNamerecord component
-
certName
Returns the value of thecertNamerecord component.- Returns:
- the value of the
certNamerecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
lastRequested
public long lastRequested()Returns the value of thelastRequestedrecord component.- Returns:
- the value of the
lastRequestedrecord component
-
rootRequestId
Returns the value of therootRequestIdrecord component.- Returns:
- the value of the
rootRequestIdrecord component
-
leafRequestId
Returns the value of theleafRequestIdrecord component.- Returns:
- the value of the
leafRequestIdrecord component
-
requestedDnsSans
Returns the value of therequestedDnsSansrecord component.- Returns:
- the value of the
requestedDnsSansrecord component
-
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-
expiry
Returns the value of theexpiryrecord component.- Returns:
- the value of the
expiryrecord component
-
lastRefreshed
Returns the value of thelastRefreshedrecord component.- Returns:
- the value of the
lastRefreshedrecord component
-
randomizedId
Returns the value of therandomizedIdrecord component.- Returns:
- the value of the
randomizedIdrecord component
-