Package com.hierynomus.sshj.key
Class BaseKeyAlgorithm
- java.lang.Object
-
- com.hierynomus.sshj.key.BaseKeyAlgorithm
-
- All Implemented Interfaces:
KeyAlgorithm
public class BaseKeyAlgorithm extends java.lang.Object implements KeyAlgorithm
-
-
Constructor Summary
Constructors Constructor Description BaseKeyAlgorithm(java.lang.String keyAlgorithm, Factory.Named<Signature> signature, KeyType keyFormat)
-
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)
-
-
-
Constructor Detail
-
BaseKeyAlgorithm
public BaseKeyAlgorithm(java.lang.String keyAlgorithm, Factory.Named<Signature> signature, KeyType keyFormat)
-
-
Method Detail
-
putPubKeyIntoBuffer
public void putPubKeyIntoBuffer(java.security.PublicKey pk, Buffer<?> buf)
- Specified by:
putPubKeyIntoBuffer
in interfaceKeyAlgorithm
-
readPubKeyFromBuffer
public java.security.PublicKey readPubKeyFromBuffer(Buffer<?> buf) throws java.security.GeneralSecurityException
- Specified by:
readPubKeyFromBuffer
in interfaceKeyAlgorithm
- Throws:
java.security.GeneralSecurityException
-
getKeyAlgorithm
public java.lang.String getKeyAlgorithm()
- Specified by:
getKeyAlgorithm
in interfaceKeyAlgorithm
-
getKeyFormat
public KeyType getKeyFormat()
- Specified by:
getKeyFormat
in interfaceKeyAlgorithm
-
newSignature
public Signature newSignature()
- Specified by:
newSignature
in interfaceKeyAlgorithm
-
-