Class BetaTunnelCertificate
-
- All Implemented Interfaces:
public final class BetaTunnelCertificateA CA certificate attached to a tunnel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTunnelCertificate.BuilderA builder for BetaTunnelCertificate.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the certificate, prefixed with tcrt_.final Optional<OffsetDateTime>archivedAt()RFC 3339 datetime string indicating when the certificate was archived. final OffsetDateTimecreatedAt()RFC 3339 datetime string indicating when the certificate was registered. final Optional<OffsetDateTime>expiresAt()RFC 3339 datetime string indicating when the certificate expires, or nullif it does not expire.final Stringfingerprint()Lowercase hex SHA-256 fingerprint of the certificate's DER encoding. final StringtunnelId()ID of the tunnel the certificate is registered against. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tunnel_certificate")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<String>_fingerprint()Returns the raw JSON value of fingerprint. final JsonField<String>_tunnelId()Returns the raw JSON value of tunnelId. final Map<String, JsonValue>_additionalProperties()final BetaTunnelCertificate.BuildertoBuilder()final BetaTunnelCertificatevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTunnelCertificate.Builderbuilder()Returns a mutable builder for constructing an instance of BetaTunnelCertificate. -
-
Method Detail
-
archivedAt
final Optional<OffsetDateTime> archivedAt()
RFC 3339 datetime string indicating when the certificate was archived. Null if it is still in the trusted set.
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string indicating when the certificate was registered.
-
expiresAt
final Optional<OffsetDateTime> expiresAt()
RFC 3339 datetime string indicating when the certificate expires, or
nullif it does not expire.
-
fingerprint
final String fingerprint()
Lowercase hex SHA-256 fingerprint of the certificate's DER encoding.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("tunnel_certificate")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_archivedAt
final JsonField<OffsetDateTime> _archivedAt()
Returns the raw JSON value of archivedAt.
Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAt
final JsonField<OffsetDateTime> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_fingerprint
final JsonField<String> _fingerprint()
Returns the raw JSON value of fingerprint.
Unlike fingerprint, this method doesn't throw if the JSON field has an unexpected type.
-
_tunnelId
final JsonField<String> _tunnelId()
Returns the raw JSON value of tunnelId.
Unlike tunnelId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaTunnelCertificate.Builder toBuilder()
-
validate
final BetaTunnelCertificate validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaTunnelCertificate.Builder builder()
Returns a mutable builder for constructing an instance of BetaTunnelCertificate.
The following fields are required:
.id() .archivedAt() .createdAt() .expiresAt() .fingerprint() .tunnelId()
-
-
-
-