Package com.hierynomus.sshj.key
Class KeyAlgorithms.Factory
- java.lang.Object
-
- com.hierynomus.sshj.key.KeyAlgorithms.Factory
-
- All Implemented Interfaces:
Factory<KeyAlgorithm>,Factory.Named<KeyAlgorithm>
- Enclosing class:
- KeyAlgorithms
public static class KeyAlgorithms.Factory extends java.lang.Object implements Factory.Named<KeyAlgorithm>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.Factory
Factory.Named<T>
-
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.Factory.Named
Factory.Named.Util
-
-
Constructor Summary
Constructors Constructor Description Factory(java.lang.String algorithmName, Factory.Named<Signature> signatureFactory, KeyType keyType)
-
Method Summary
Modifier and Type Method Description KeyAlgorithmcreate()KeyTypegetKeyType()java.lang.StringgetName()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Factory
public Factory(java.lang.String algorithmName, Factory.Named<Signature> signatureFactory, KeyType keyType)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceFactory.Named<KeyAlgorithm>- Returns:
- the name of this factory.
-
getKeyType
public KeyType getKeyType()
-
create
public KeyAlgorithm create()
- Specified by:
createin interfaceFactory<KeyAlgorithm>- Returns:
- a new object created using this factory.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-