Class OpenSshCertificateImpl
java.lang.Object
org.apache.sshd.common.config.keys.OpenSshCertificateImpl
- All Implemented Interfaces:
Serializable
,Key
,PrivateKey
,PublicKey
,Destroyable
,OpenSshCertificate
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PublicKey
private String
private String
private byte[]
private byte[]
private Collection<String>
private String
private long
private static final long
private PublicKey
private byte[]
private int
private long
private long
Fields inherited from interface org.apache.sshd.common.config.keys.OpenSshCertificate
SSH_CERT_TYPE_HOST, SSH_CERT_TYPE_USER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getId()
byte[]
byte[]
getNonce()
long
byte[]
int
getType()
long
long
void
setCaPubKey
(PublicKey caPubKey) void
setCriticalOptions
(List<String> criticalOptions) void
setExtensions
(List<String> extensions) void
void
setKeyType
(String keyType) void
setMessage
(byte[] message) void
setNonce
(byte[] nonce) void
setPrincipals
(Collection<String> principals) void
setReserved
(String reserved) void
setSerial
(long serial) void
setServerHostKey
(PublicKey serverHostKey) void
setSignature
(byte[] signature) void
setType
(int type) void
setValidAfter
(long validAfter) void
setValidBefore
(long validBefore) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyed
Methods inherited from interface org.apache.sshd.common.config.keys.OpenSshCertificate
getValidAfterDate, getValidBeforeDate
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
keyType
-
nonce
private byte[] nonce -
serverHostKey
-
serial
private long serial -
type
private int type -
id
-
principals
-
validAfter
private long validAfter -
validBefore
private long validBefore -
criticalOptions
-
extensions
-
reserved
-
caPubKey
-
message
private byte[] message -
signature
private byte[] signature
-
-
Constructor Details
-
OpenSshCertificateImpl
public OpenSshCertificateImpl()
-
-
Method Details
-
getRawKeyType
- Specified by:
getRawKeyType
in interfaceOpenSshCertificate
-
getNonce
public byte[] getNonce()- Specified by:
getNonce
in interfaceOpenSshCertificate
-
getKeyType
- Specified by:
getKeyType
in interfaceOpenSshCertificate
-
getServerHostKey
- Specified by:
getServerHostKey
in interfaceOpenSshCertificate
-
getSerial
public long getSerial()- Specified by:
getSerial
in interfaceOpenSshCertificate
-
getType
public int getType()- Specified by:
getType
in interfaceOpenSshCertificate
-
getId
- Specified by:
getId
in interfaceOpenSshCertificate
-
getPrincipals
- Specified by:
getPrincipals
in interfaceOpenSshCertificate
-
getValidAfter
public long getValidAfter()- Specified by:
getValidAfter
in interfaceOpenSshCertificate
-
getValidBefore
public long getValidBefore()- Specified by:
getValidBefore
in interfaceOpenSshCertificate
-
getCriticalOptions
- Specified by:
getCriticalOptions
in interfaceOpenSshCertificate
-
getExtensions
- Specified by:
getExtensions
in interfaceOpenSshCertificate
-
getReserved
- Specified by:
getReserved
in interfaceOpenSshCertificate
-
getCaPubKey
- Specified by:
getCaPubKey
in interfaceOpenSshCertificate
-
getMessage
public byte[] getMessage()- Specified by:
getMessage
in interfaceOpenSshCertificate
-
getSignature
public byte[] getSignature()- Specified by:
getSignature
in interfaceOpenSshCertificate
-
getSignatureAlg
- Specified by:
getSignatureAlg
in interfaceOpenSshCertificate
-
getAlgorithm
- Specified by:
getAlgorithm
in interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncoded
in interfaceKey
-
setKeyType
-
setNonce
public void setNonce(byte[] nonce) -
setServerHostKey
-
setSerial
public void setSerial(long serial) -
setType
public void setType(int type) -
setId
-
setPrincipals
-
setValidAfter
public void setValidAfter(long validAfter) -
setValidBefore
public void setValidBefore(long validBefore) -
setCriticalOptions
-
setExtensions
-
setReserved
-
setCaPubKey
-
setMessage
public void setMessage(byte[] message) -
setSignature
public void setSignature(byte[] signature) -
toString
-