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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
algorithmName
private KeyType
keyType
private Factory.Named<Signature>
signatureFactory
-
Constructor Summary
Constructors Constructor Description Factory(java.lang.String algorithmName, Factory.Named<Signature> signatureFactory, KeyType keyType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyAlgorithm
create()
KeyType
getKeyType()
java.lang.String
getName()
java.lang.String
toString()
-
-
-
Field Detail
-
algorithmName
private final java.lang.String algorithmName
-
signatureFactory
private final Factory.Named<Signature> signatureFactory
-
keyType
private final KeyType keyType
-
-
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:
getName
in interfaceFactory.Named<KeyAlgorithm>
- Returns:
- the name of this factory.
-
getKeyType
public KeyType getKeyType()
-
create
public KeyAlgorithm create()
- Specified by:
create
in interfaceFactory<KeyAlgorithm>
- Returns:
- a new object created using this factory.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-