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
,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 String
private final byte[]
private final T
private final BigInteger
private static final long
private final byte[]
private final byte[]
private final long
private final Date
private final Date
-
Constructor Summary
Constructors -
Method Summary
-
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:
getEncoded
in interfaceKey
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
-