Class EndpointCertificateMetadata
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.certificates.EndpointCertificateMetadata
-
public class EndpointCertificateMetadata extends Object
This class is used for metadata about an application's endpoint certificate on the controller.It has more properties than com.yahoo.config.model.api.EndpointCertificateMetadata.
- Author:
- andreer
-
-
Constructor Summary
Constructors Constructor Description EndpointCertificateMetadata(String keyName, String certName, int version, long lastRequested, String rootRequestId, Optional<String> leafRequestId, List<String> requestedDnsSans, String issuer, Optional<Long> expiry, Optional<Long> lastRefreshed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcertName()booleanequals(Object o)Optional<Long>expiry()inthashCode()Stringissuer()StringkeyName()Optional<Long>lastRefreshed()longlastRequested()Optional<String>leafRequestId()List<String>requestedDnsSans()StringrootRequestId()StringtoString()intversion()EndpointCertificateMetadatawithLastRefreshed(long lastRefreshed)EndpointCertificateMetadatawithLastRequested(long lastRequested)EndpointCertificateMetadatawithLeafRequestId(Optional<String> leafRequestId)EndpointCertificateMetadatawithRootRequestId(String rootRequestId)EndpointCertificateMetadatawithVersion(int version)
-
-
-
Method Detail
-
keyName
public String keyName()
-
certName
public String certName()
-
version
public int version()
-
lastRequested
public long lastRequested()
-
rootRequestId
public String rootRequestId()
- Returns:
- The request id of the first request made for this certificate. Should not change.
-
leafRequestId
public Optional<String> leafRequestId()
- Returns:
- The request id of the last known request made for this certificate. Changes on refresh, may be outdated!
-
issuer
public String issuer()
-
withVersion
public EndpointCertificateMetadata withVersion(int version)
-
withLastRequested
public EndpointCertificateMetadata withLastRequested(long lastRequested)
-
withLastRefreshed
public EndpointCertificateMetadata withLastRefreshed(long lastRefreshed)
-
withRootRequestId
public EndpointCertificateMetadata withRootRequestId(String rootRequestId)
-
withLeafRequestId
public EndpointCertificateMetadata withLeafRequestId(Optional<String> leafRequestId)
-
-