Package com.ngrok.definitions
Class SshHostCertificate
java.lang.Object
com.ngrok.definitions.SshHostCertificate
A class encapsulating the
SshHostCertificate
resource.-
Constructor Summary
ConstructorDescriptionSshHostCertificate
(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String publicKey, String keyType, String sshCertificateAuthorityId, List<String> principals, OffsetDateTime validAfter, OffsetDateTime validUntil, String certificate) Creates a new instance ofSshHostCertificate
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
the signed SSH certificate in OpenSSH Authorized Keys format.timestamp when the SSH Host Certificate API resource was created, RFC 3339 formathuman-readable description of this SSH Host Certificate.getId()
unique identifier for this SSH Host Certificatethe key type of thepublic_key
, one ofrsa
,ecdsa
ored25519
arbitrary user-defined machine-readable data of this SSH Host Certificate.the list of principals included in the ssh host certificate.a public key in OpenSSH Authorized Keys format that this certificate signsthe ssh certificate authority that is used to sign this ssh host certificategetUri()
URI of the SSH Host Certificate API resourcethe time when the ssh host certificate becomes valid, in RFC 3339 format.the time after which the ssh host certificate becomes invalid, in RFC 3339 format.int
hashCode()
toString()
-
Constructor Details
-
SshHostCertificate
public SshHostCertificate(String id, URI uri, OffsetDateTime createdAt, String description, String metadata, String publicKey, String keyType, String sshCertificateAuthorityId, List<String> principals, OffsetDateTime validAfter, OffsetDateTime validUntil, String certificate) Creates a new instance ofSshHostCertificate
.- Parameters:
id
- unique identifier for this SSH Host Certificateuri
- URI of the SSH Host Certificate API resourcecreatedAt
- timestamp when the SSH Host Certificate API resource was created, RFC 3339 formatdescription
- human-readable description of this SSH Host Certificate. optional, max 255 bytes.metadata
- arbitrary user-defined machine-readable data of this SSH Host Certificate. optional, max 4096 bytes.publicKey
- a public key in OpenSSH Authorized Keys format that this certificate signskeyType
- the key type of thepublic_key
, one ofrsa
,ecdsa
ored25519
sshCertificateAuthorityId
- the ssh certificate authority that is used to sign this ssh host certificateprincipals
- the list of principals included in the ssh host certificate. This is the list of hostnames and/or IP addresses that are authorized to serve SSH traffic with this certificate. Dangerously, if no principals are specified, this certificate is considered valid for all hosts.validAfter
- the time when the ssh host certificate becomes valid, in RFC 3339 format.validUntil
- the time after which the ssh host certificate becomes invalid, in RFC 3339 format. the OpenSSH certificates RFC calls thisvalid_before
.certificate
- the signed SSH certificate in OpenSSH Authorized Keys format. this value should be placed in a-cert.pub
certificate file on disk that should be referenced in yoursshd_config
configuration file with aHostCertificate
directive
-
-
Method Details
-
getId
unique identifier for this SSH Host Certificate- Returns:
- the value of the property as a
String
-
getUri
URI of the SSH Host Certificate API resource- Returns:
- the value of the property as a
URI
-
getCreatedAt
timestamp when the SSH Host Certificate API resource was created, RFC 3339 format- Returns:
- the value of the property as a
OffsetDateTime
-
getDescription
human-readable description of this SSH Host Certificate. optional, max 255 bytes.- Returns:
- the value of the property as a
String
-
getMetadata
arbitrary user-defined machine-readable data of this SSH Host Certificate. optional, max 4096 bytes.- Returns:
- the value of the property as a
String
-
getPublicKey
a public key in OpenSSH Authorized Keys format that this certificate signs- Returns:
- the value of the property as a
String
-
getKeyType
the key type of thepublic_key
, one ofrsa
,ecdsa
ored25519
- Returns:
- the value of the property as a
String
-
getSshCertificateAuthorityId
the ssh certificate authority that is used to sign this ssh host certificate- Returns:
- the value of the property as a
String
-
getPrincipals
the list of principals included in the ssh host certificate. This is the list of hostnames and/or IP addresses that are authorized to serve SSH traffic with this certificate. Dangerously, if no principals are specified, this certificate is considered valid for all hosts. -
getValidAfter
the time when the ssh host certificate becomes valid, in RFC 3339 format.- Returns:
- the value of the property as a
OffsetDateTime
-
getValidUntil
the time after which the ssh host certificate becomes invalid, in RFC 3339 format. the OpenSSH certificates RFC calls thisvalid_before
.- Returns:
- the value of the property as a
OffsetDateTime
-
getCertificate
the signed SSH certificate in OpenSSH Authorized Keys format. this value should be placed in a-cert.pub
certificate file on disk that should be referenced in yoursshd_config
configuration file with aHostCertificate
directive- Returns:
- the value of the property as a
String
-
equals
-
hashCode
public int hashCode() -
toString
-