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 intSSH_CERT_TYPE_HOSTstatic intSSH_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 PublicKeygetCaPubKey()List<String>getCriticalOptions()List<String>getExtensions()StringgetId()StringgetKeyType()byte[]getMessage()byte[]getNonce()Collection<String>getPrincipals()StringgetRawKeyType()StringgetReserved()longgetSerial()PublicKeygetServerHostKey()byte[]getSignature()StringgetSignatureAlg()intgetType()longgetValidAfter()default DategetValidAfterDate()longgetValidBefore()default DategetValidBeforeDate()static DategetValidDate(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)
-
-