| Modifier and Type | Class and Description |
|---|---|
| public static class | OpenSshCertificate.
Certificate Options are a set of bytes that is [overall length][name(string)][[length of buffer][[length of string][data(string)]]]... |
| public static enum | OpenSshCertificate.
Note values order is significant |
| Modifier and Type | Field and Description |
|---|---|
| public static final long | INFINITY
The maximum |
| public static final long | MIN_EPOCH
The minimal |
| Modifier and Type | Method and Description |
|---|---|
| public PublicKey | |
| public PublicKey | |
| public List | Returns: the critical options as a list, nevernull but possibly emptyRetrieves the critical options set in the certificate. |
| public List | Returns: the extensions as a list, nevernull but possibly emptyRetrieves the extensions set in the certificate. |
| public String | Returns: the id; nevernull but may be empty.Retrieves a free-form text set by the CA when the certificate was generated; intended to identify the identity principal in log message. |
| public byte[] | Returns: the part of the certificate raw data that was signedRetrieves the raw byte content of the certificate, minus the signature. |
| public byte[] | |
| public Collection | Returns: the collection of principals, nevernull but possibly emptyRetrieves the principals mentioned in the certificate. |
| public String | Returns: the key type, for instance "ssh-rsa" for a "[email protected]" certificateRetrieves the raw SSH key type of this certificate. |
| public byte[] | Returns: the signature bytesRetrieves the raw signature bytes, without the signature algorithm. |
| public String | |
| public long | |
| public byte[] | Returns: the signature bytesRetrieves the signature of the certificate, including the signature algorithm. |
| public String | Returns: the signature algorithm as recorded in the certificateRetrieves the signature algorithm used for the signature. |
| public OpenSshCertificate. | |
| public long | Returns: the number of seconds since thejava. as an unsigned 64bit valueRetrieves the time in number of seconds since the |
| public long | Returns: the number of seconds since thejava. as an unsigned 64bit valueRetrieves the time in number of seconds since the |
| public static boolean | Returns: true if the certificate is valid according to its timestamps, false otherwiseto check cert)Determines whether the given |
| INFINITY | back to summary |
|---|---|
| public static final long INFINITY The maximum Note that timestamps in OpenSSH certificates are unsigned 64-bit values.
| |
| MIN_EPOCH | back to summary |
|---|---|
| public static final long MIN_EPOCH The minimal | |
| getCaPubKey | back to summary |
|---|---|
| public PublicKey getCaPubKey() Retrieves the CA public key of this certificate. | |
| getCertPubKey | back to summary |
|---|---|
| public PublicKey getCertPubKey() Retrieves the certified public key. | |
| getCriticalOptions | back to summary |
|---|---|
| public List Retrieves the critical options set in the certificate.
| |
| getExtensions | back to summary |
|---|---|
| public List Retrieves the extensions set in the certificate.
| |
| getId | back to summary |
|---|---|
| public String getId() Retrieves a free-form text set by the CA when the certificate was generated; intended to identify the identity principal in log message.
| |
| getMessage | back to summary |
|---|---|
| public byte[] getMessage() Retrieves the raw byte content of the certificate, minus the signature. This is the data that was signed.
| |
| getNonce | back to summary |
|---|---|
| public byte[] getNonce() Retrieves the nonce of this certificate.
| |
| getPrincipals | back to summary |
|---|---|
| public Collection Retrieves the principals mentioned in the certificate.
| |
| getRawKeyType | back to summary |
|---|---|
| public String getRawKeyType() Retrieves the raw SSH key type of this certificate.
| |
| getRawSignature | back to summary |
|---|---|
| public byte[] getRawSignature() Retrieves the raw signature bytes, without the signature algorithm.
| |
| getReserved | back to summary |
|---|---|
| public String getReserved() Retrieves the "reserved" field of the certificate. OpenSSH currently doesn't use it and ignores it.
| |
| getSerial | back to summary |
|---|---|
| public long getSerial() Retrieves the serial number of this certificate.
| |
| getSignature | back to summary |
|---|---|
| public byte[] getSignature() Retrieves the signature of the certificate, including the signature algorithm.
| |
| getSignatureAlgorithm | back to summary |
|---|---|
| public String getSignatureAlgorithm() Retrieves the signature algorithm used for the signature.
| |
| getType | back to summary |
|---|---|
| public OpenSshCertificate. Retrieves the type of certificate.
| |
| getValidAfter | back to summary |
|---|---|
| public long getValidAfter() Retrieves the time in number of seconds since the
| |
| getValidBefore | back to summary |
|---|---|
| public long getValidBefore() Retrieves the time in number of seconds since the
| |
| isValidNow | back to summary |
|---|---|
| public static boolean isValidNow(OpenSshCertificate cert) Determines whether the given
| |
[overall length][name(string)][[length of buffer][[length of string][data(string)]]]...
Where each Certificate Option is encoded as a name (string) and data (string packed in a buffer). The entire name (string) + data (buffer) are added as bytes (which will get a length prefix).
| Access | Constructor and Description |
|---|---|
| public | CertificateOption(String
of the option; must be neither name, String null nor emptyfor the option; may be data)null or emptyCreates a new |
| public | CertificateOption(String
of the option; must be neither name)null nor emptyCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public final String | |
| public final String | |
| public int | |
| public String |
| data | back to summary |
|---|---|
| private final String data | |
| name | back to summary |
|---|---|
| private final String name | |
| CertificateOption | back to summary |
|---|---|
| public CertificateOption(String name, String data) Creates a new | |
| CertificateOption | back to summary |
|---|---|
| public CertificateOption(String name) Creates a new
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getData | back to summary |
|---|---|
| public final String getData() Retrieves the data.
| |
| getName | back to summary |
|---|---|
| public final String getName() Retrieves the name.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
OpenSshCertificates have a type indicating whether the certificate if for a host key (certifying a host
identity) or for a user key (certifying a user identity)Note
values order is significant
| Modifier and Type | Field and Description |
|---|---|
| public static final OpenSshCertificate. | HOST
Host key certificate. |
| public static final OpenSshCertificate. | USER
User key certificate. |
| public static final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static OpenSshCertificate. | |
| public int | |
| public static OpenSshCertificate. | |
| public static OpenSshCertificate. |
| HOST | back to summary |
|---|---|
| public static final OpenSshCertificate. Host key certificate. | |
| USER | back to summary |
|---|---|
| public static final OpenSshCertificate. User key certificate. | |
| VALUES | back to summary |
|---|---|
| public static final List<OpenSshCertificate. | |
| Type | back to summary |
|---|---|
| private Type() | |
| fromCode | back to summary |
|---|---|
| public static OpenSshCertificate. | |
| getCode | back to summary |
|---|---|
| public int getCode() | |
| valueOf | back to summary |
|---|---|
| public static OpenSshCertificate. | |
| values | back to summary |
|---|---|
| public static OpenSshCertificate. | |