Package com.hierynomus.sshj.key
Interface KeyAlgorithm
-
- All Known Implementing Classes:
BaseKeyAlgorithm
public interface KeyAlgorithm
In [RFC4252], the concept "public key algorithm" is used to establish a relationship between one algorithm name, and:A. procedures used to generate and validate a private/public keypair; B. a format used to encode a public key; and C. procedures used to calculate, encode, and verify a signature.
-
-
Method Summary
Modifier and Type Method Description java.lang.String
getKeyAlgorithm()
KeyType
getKeyFormat()
Signature
newSignature()
void
putPubKeyIntoBuffer(java.security.PublicKey pk, Buffer<?> buf)
java.security.PublicKey
readPubKeyFromBuffer(Buffer<?> buf)
-
-
-
Method Detail
-
readPubKeyFromBuffer
java.security.PublicKey readPubKeyFromBuffer(Buffer<?> buf) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
putPubKeyIntoBuffer
void putPubKeyIntoBuffer(java.security.PublicKey pk, Buffer<?> buf)
-
getKeyAlgorithm
java.lang.String getKeyAlgorithm()
-
getKeyFormat
KeyType getKeyFormat()
-
newSignature
Signature newSignature()
-
-