Interface OpenSshCertificate
-
- All Superinterfaces:
Destroyable
,Key
,PrivateKey
,PublicKey
,Serializable
- All Known Implementing Classes:
OpenSshCertificateImpl
public interface OpenSshCertificate extends PublicKey, PrivateKey
Represents and OpenSSH certificate key as specified in PROTOCOL.certkeys- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static int
SSH_CERT_TYPE_HOST
static int
SSH_CERT_TYPE_USER
-
Fields inherited from interface java.security.PrivateKey
serialVersionUID
-
Fields inherited from interface java.security.PublicKey
serialVersionUID
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PublicKey
getCaPubKey()
List<String>
getCriticalOptions()
List<String>
getExtensions()
String
getId()
String
getKeyType()
byte[]
getMessage()
byte[]
getNonce()
Collection<String>
getPrincipals()
String
getRawKeyType()
String
getReserved()
long
getSerial()
PublicKey
getServerHostKey()
byte[]
getSignature()
String
getSignatureAlg()
int
getType()
long
getValidAfter()
default Date
getValidAfterDate()
long
getValidBefore()
default Date
getValidBeforeDate()
static Date
getValidDate(long timestamp)
-
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
-
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
-
-
-
-
Field Detail
-
SSH_CERT_TYPE_USER
static final int SSH_CERT_TYPE_USER
- See Also:
- Constant Field Values
-
SSH_CERT_TYPE_HOST
static final int SSH_CERT_TYPE_HOST
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRawKeyType
String getRawKeyType()
-
getNonce
byte[] getNonce()
-
getKeyType
String getKeyType()
-
getServerHostKey
PublicKey getServerHostKey()
-
getSerial
long getSerial()
-
getType
int getType()
-
getId
String getId()
-
getPrincipals
Collection<String> getPrincipals()
-
getValidAfter
long getValidAfter()
-
getValidAfterDate
default Date getValidAfterDate()
-
getValidBefore
long getValidBefore()
-
getValidBeforeDate
default Date getValidBeforeDate()
-
getReserved
String getReserved()
-
getCaPubKey
PublicKey getCaPubKey()
-
getMessage
byte[] getMessage()
-
getSignature
byte[] getSignature()
-
getSignatureAlg
String getSignatureAlg()
-
getValidDate
static Date getValidDate(long timestamp)
-
-