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 PublicKeyprivate Stringprivate Stringprivate byte[]private byte[]private Collection<String>private Stringprivate longprivate static final longprivate PublicKeyprivate byte[]private intprivate longprivate longFields 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()longbyte[]intgetType()longlongvoidsetCaPubKey(PublicKey caPubKey) voidsetCriticalOptions(List<String> criticalOptions) voidsetExtensions(List<String> extensions) voidvoidsetKeyType(String keyType) voidsetMessage(byte[] message) voidsetNonce(byte[] nonce) voidsetPrincipals(Collection<String> principals) voidsetReserved(String reserved) voidsetSerial(long serial) voidsetServerHostKey(PublicKey serverHostKey) voidsetSignature(byte[] signature) voidsetType(int type) voidsetValidAfter(long validAfter) voidsetValidBefore(long validBefore) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.security.auth.Destroyable
destroy, isDestroyedMethods 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:
getRawKeyTypein interfaceOpenSshCertificate
-
getNonce
public byte[] getNonce()- Specified by:
getNoncein interfaceOpenSshCertificate
-
getKeyType
- Specified by:
getKeyTypein interfaceOpenSshCertificate
-
getServerHostKey
- Specified by:
getServerHostKeyin interfaceOpenSshCertificate
-
getSerial
public long getSerial()- Specified by:
getSerialin interfaceOpenSshCertificate
-
getType
public int getType()- Specified by:
getTypein interfaceOpenSshCertificate
-
getId
- Specified by:
getIdin interfaceOpenSshCertificate
-
getPrincipals
- Specified by:
getPrincipalsin interfaceOpenSshCertificate
-
getValidAfter
public long getValidAfter()- Specified by:
getValidAfterin interfaceOpenSshCertificate
-
getValidBefore
public long getValidBefore()- Specified by:
getValidBeforein interfaceOpenSshCertificate
-
getCriticalOptions
- Specified by:
getCriticalOptionsin interfaceOpenSshCertificate
-
getExtensions
- Specified by:
getExtensionsin interfaceOpenSshCertificate
-
getReserved
- Specified by:
getReservedin interfaceOpenSshCertificate
-
getCaPubKey
- Specified by:
getCaPubKeyin interfaceOpenSshCertificate
-
getMessage
public byte[] getMessage()- Specified by:
getMessagein interfaceOpenSshCertificate
-
getSignature
public byte[] getSignature()- Specified by:
getSignaturein interfaceOpenSshCertificate
-
getSignatureAlg
- Specified by:
getSignatureAlgin interfaceOpenSshCertificate
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey
-
getFormat
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin 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
-