Package com.ngrok.definitions
Class CertificateAuthority
java.lang.Object
com.ngrok.definitions.CertificateAuthority
A class encapsulating the
CertificateAuthority
resource.-
Constructor Summary
ConstructorDescriptionCertificateAuthority
(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String caPem, String subjectCommonName, OffsetDateTime notBefore, OffsetDateTime notAfter, List<String> keyUsages, List<String> extendedKeyUsages) Creates a new instance ofCertificateAuthority
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCaPem()
raw PEM of the Certificate Authoritytimestamp when the Certificate Authority was created, RFC 3339 formathuman-readable description of this Certificate Authority.extended set of actions the private key of this Certificate Authority can be used forgetId()
unique identifier for this Certificate Authorityset of actions the private key of this Certificate Authority can be used forarbitrary user-defined machine-readable data of this Certificate Authority.timestamp when this Certificate Authority becomes invalid, RFC 3339 formattimestamp when this Certificate Authority becomes valid, RFC 3339 formatsubject common name of the Certificate AuthoritygetUri()
URI of the Certificate Authority API resourceint
hashCode()
toString()
-
Constructor Details
-
CertificateAuthority
public CertificateAuthority(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String caPem, String subjectCommonName, OffsetDateTime notBefore, OffsetDateTime notAfter, List<String> keyUsages, List<String> extendedKeyUsages) Creates a new instance ofCertificateAuthority
.- Parameters:
id
- unique identifier for this Certificate Authorityuri
- URI of the Certificate Authority API resourcecreatedAt
- timestamp when the Certificate Authority was created, RFC 3339 formatdescription
- human-readable description of this Certificate Authority. optional, max 255 bytes.metadata
- arbitrary user-defined machine-readable data of this Certificate Authority. optional, max 4096 bytes.caPem
- raw PEM of the Certificate AuthoritysubjectCommonName
- subject common name of the Certificate AuthoritynotBefore
- timestamp when this Certificate Authority becomes valid, RFC 3339 formatnotAfter
- timestamp when this Certificate Authority becomes invalid, RFC 3339 formatkeyUsages
- set of actions the private key of this Certificate Authority can be used forextendedKeyUsages
- extended set of actions the private key of this Certificate Authority can be used for
-
-
Method Details
-
getId
unique identifier for this Certificate Authority- Returns:
- the value of the property as a
String
-
getUri
URI of the Certificate Authority API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the Certificate Authority was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of this Certificate Authority. optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this Certificate Authority. optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getCaPem
raw PEM of the Certificate Authority- Returns:
- the value of the property as a
String
-
getSubjectCommonName
subject common name of the Certificate Authority- Returns:
- the value of the property as a
String
-
getNotBefore
timestamp when this Certificate Authority becomes valid, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getNotAfter
timestamp when this Certificate Authority becomes invalid, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getKeyUsages
set of actions the private key of this Certificate Authority can be used for -
getExtendedKeyUsages
extended set of actions the private key of this Certificate Authority can be used for -
equals
-
hashCode
public int hashCode() -
toString
-