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.StringgetKeyAlgorithm()KeyTypegetKeyFormat()SignaturenewSignature()voidputPubKeyIntoBuffer(java.security.PublicKey pk, Buffer<?> buf)java.security.PublicKeyreadPubKeyFromBuffer(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:
putPubKeyIntoBufferin interfaceKeyAlgorithm
-
readPubKeyFromBuffer
public java.security.PublicKey readPubKeyFromBuffer(Buffer<?> buf) throws java.security.GeneralSecurityException
- Specified by:
readPubKeyFromBufferin interfaceKeyAlgorithm- Throws:
java.security.GeneralSecurityException
-
getKeyAlgorithm
public java.lang.String getKeyAlgorithm()
- Specified by:
getKeyAlgorithmin interfaceKeyAlgorithm
-
getKeyFormat
public KeyType getKeyFormat()
- Specified by:
getKeyFormatin interfaceKeyAlgorithm
-
newSignature
public Signature newSignature()
- Specified by:
newSignaturein interfaceKeyAlgorithm
-
-