Class Certificate<T extends PublicKey>
java.lang.Object
com.hierynomus.sshj.userauth.certificate.Certificate<T>
- Type Parameters:
T- inner public key type
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PublicKey
Certificate wrapper for public keys, created to help implement
protocol described here:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.certkeys?annotate=HEAD
Consumed primarily by net.shmizz.sshj.common.KeyType
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final byte[]private final Tprivate final BigIntegerprivate static final longprivate final byte[]private final byte[]private final longprivate final Dateprivate final Date -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AsymmetricKey
getParams
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
publicKey
-
nonce
private final byte[] nonce -
serial
-
type
private final long type -
id
-
validPrincipals
-
validAfter
-
validBefore
-
critOptions
-
extensions
-
signatureKey
private final byte[] signatureKey -
signature
private final byte[] signature
-
-
Constructor Details
-
Certificate
Certificate(Certificate.Builder<T> builder)
-
-
Method Details
-
getBuilder
-
getNonce
public byte[] getNonce() -
getSerial
-
getType
public long getType() -
getId
-
getValidPrincipals
-
getValidAfter
-
getValidBefore
-
getCritOptions
-
getExtensions
-
getSignatureKey
public byte[] getSignatureKey() -
getSignature
public byte[] getSignature() -
getKey
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-