Package com.ngrok.definitions
Class TlsCertificate
java.lang.Object
com.ngrok.definitions.TlsCertificate
A class encapsulating the
TlsCertificate
resource.-
Constructor Summary
ConstructorDescriptionTlsCertificate
(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String certificatePem, String subjectCommonName, TlsCertificateSaNs subjectAlternativeNames, Optional<OffsetDateTime> issuedAt, OffsetDateTime notBefore, OffsetDateTime notAfter, List<String> keyUsages, List<String> extendedKeyUsages, String privateKeyType, String issuerCommonName, String serialNumber, String subjectOrganization, String subjectOrganizationalUnit, String subjectLocality, String subjectProvince, String subjectCountry) Creates a new instance ofTlsCertificate
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
chain of PEM-encoded certificates, leaf first.timestamp when the TLS certificate was created, RFC 3339 formathuman-readable description of this TLS certificate.extended set of actions the private key of this TLS certificate can be used forgetId()
unique identifier for this TLS certificatetimestamp (in RFC 3339 format) when this TLS certificate was issued automatically, or null if this certificate was user-uploadedissuer common name from the leaf of this TLS certificateset of actions the private key of this TLS certificate can be used forarbitrary user-defined machine-readable data of this TLS certificate.timestamp when this TLS certificate becomes invalid, RFC 3339 formattimestamp when this TLS certificate becomes valid, RFC 3339 formattype of the private key of this TLS certificate.serial number of the leaf of this TLS certificatesubject alternative names (SANs) from the leaf of this TLS certificatesubject common name from the leaf of this TLS certificatesubject country from the leaf of this TLS certificatesubject locality from the leaf of this TLS certificatesubject organization from the leaf of this TLS certificatesubject organizational unit from the leaf of this TLS certificatesubject province from the leaf of this TLS certificategetUri()
URI of the TLS certificate API resourceint
hashCode()
toString()
-
Constructor Details
-
TlsCertificate
public TlsCertificate(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String certificatePem, String subjectCommonName, TlsCertificateSaNs subjectAlternativeNames, Optional<OffsetDateTime> issuedAt, OffsetDateTime notBefore, OffsetDateTime notAfter, List<String> keyUsages, List<String> extendedKeyUsages, String privateKeyType, String issuerCommonName, String serialNumber, String subjectOrganization, String subjectOrganizationalUnit, String subjectLocality, String subjectProvince, String subjectCountry) Creates a new instance ofTlsCertificate
.- Parameters:
id
- unique identifier for this TLS certificateuri
- URI of the TLS certificate API resourcecreatedAt
- timestamp when the TLS certificate was created, RFC 3339 formatdescription
- human-readable description of this TLS certificate. optional, max 255 bytes.metadata
- arbitrary user-defined machine-readable data of this TLS certificate. optional, max 4096 bytes.certificatePem
- chain of PEM-encoded certificates, leaf first. See Certificate Bundles.subjectCommonName
- subject common name from the leaf of this TLS certificatesubjectAlternativeNames
- subject alternative names (SANs) from the leaf of this TLS certificateissuedAt
- timestamp (in RFC 3339 format) when this TLS certificate was issued automatically, or null if this certificate was user-uploadednotBefore
- timestamp when this TLS certificate becomes valid, RFC 3339 formatnotAfter
- timestamp when this TLS certificate becomes invalid, RFC 3339 formatkeyUsages
- set of actions the private key of this TLS certificate can be used forextendedKeyUsages
- extended set of actions the private key of this TLS certificate can be used forprivateKeyType
- type of the private key of this TLS certificate. One of rsa, ecdsa, or ed25519.issuerCommonName
- issuer common name from the leaf of this TLS certificateserialNumber
- serial number of the leaf of this TLS certificatesubjectOrganization
- subject organization from the leaf of this TLS certificatesubjectOrganizationalUnit
- subject organizational unit from the leaf of this TLS certificatesubjectLocality
- subject locality from the leaf of this TLS certificatesubjectProvince
- subject province from the leaf of this TLS certificatesubjectCountry
- subject country from the leaf of this TLS certificate
-
-
Method Details
-
getId
unique identifier for this TLS certificate- Returns:
- the value of the property as a
String
-
getUri
URI of the TLS certificate API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the TLS certificate was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of this TLS certificate. optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this TLS certificate. optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getCertificatePem
chain of PEM-encoded certificates, leaf first. See Certificate Bundles.- Returns:
- the value of the property as a
String
-
getSubjectCommonName
subject common name from the leaf of this TLS certificate- Returns:
- the value of the property as a
String
-
getSubjectAlternativeNames
subject alternative names (SANs) from the leaf of this TLS certificate- Returns:
- the value of the property as a
TlsCertificateSaNs
-
getIssuedAt
timestamp (in RFC 3339 format) when this TLS certificate was issued automatically, or null if this certificate was user-uploaded- Returns:
- the value of the property as a
OffsetDateTime
wrapped in anOptional
-
getNotBefore
timestamp when this TLS certificate becomes valid, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getNotAfter
timestamp when this TLS certificate becomes invalid, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getKeyUsages
set of actions the private key of this TLS certificate can be used for -
getExtendedKeyUsages
extended set of actions the private key of this TLS certificate can be used for -
getPrivateKeyType
type of the private key of this TLS certificate. One of rsa, ecdsa, or ed25519.- Returns:
- the value of the property as a
String
-
getIssuerCommonName
issuer common name from the leaf of this TLS certificate- Returns:
- the value of the property as a
String
-
getSerialNumber
serial number of the leaf of this TLS certificate- Returns:
- the value of the property as a
String
-
getSubjectOrganization
subject organization from the leaf of this TLS certificate- Returns:
- the value of the property as a
String
-
getSubjectOrganizationalUnit
subject organizational unit from the leaf of this TLS certificate- Returns:
- the value of the property as a
String
-
getSubjectLocality
subject locality from the leaf of this TLS certificate- Returns:
- the value of the property as a
String
-
getSubjectProvince
subject province from the leaf of this TLS certificate- Returns:
- the value of the property as a
String
-
getSubjectCountry
subject country from the leaf of this TLS certificate- Returns:
- the value of the property as a
String
-
equals
-
hashCode
public int hashCode() -
toString
-