public class JceEncryptionFactory extends java.lang.Object implements EncryptionFactory
Modifier and Type | Class and Description |
---|---|
static class |
JceEncryptionFactory.Entry
An algorithm entry.
|
EncryptionFactory.Mode, EncryptionFactory.OperationException
Constructor and Description |
---|
JceEncryptionFactory(JceEncryptionFactory.Entry... entries)
Creates a new factory instance.
|
Modifier and Type | Method and Description |
---|---|
com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.Encryption |
clientToServerEncryptionFor(java.lang.String name,
com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.KeyFactory keyFactory,
EncryptionFactory.Mode mode)
Returns an encryption operation for client-server direction.
|
java.util.List<java.lang.String> |
encryptions()
Returns supported encryption algorithms.
|
com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.Encryption |
serverToClientEncryptionFor(java.lang.String name,
com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.KeyFactory keyFactory,
EncryptionFactory.Mode mode)
Returns an encryption operation for server-client direction.
|
JceEncryptionFactory |
set(JceEncryptionFactory.Entry... entries)
Sets algorithm entries.
|
java.lang.String |
toString() |
public JceEncryptionFactory(JceEncryptionFactory.Entry... entries)
entries
- entriespublic JceEncryptionFactory set(JceEncryptionFactory.Entry... entries)
entries
- entriespublic java.util.List<java.lang.String> encryptions()
EncryptionFactory
encryptions
in interface EncryptionFactory
public com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.Encryption clientToServerEncryptionFor(java.lang.String name, com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.KeyFactory keyFactory, EncryptionFactory.Mode mode) throws EncryptionFactory.OperationException
EncryptionFactory
clientToServerEncryptionFor
in interface EncryptionFactory
name
- a SSH algorithm namekeyFactory
- a key factorymode
- an encryption modeEncryptionFactory.OperationException
- if an error occurspublic com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.Encryption serverToClientEncryptionFor(java.lang.String name, com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.KeyFactory keyFactory, EncryptionFactory.Mode mode) throws EncryptionFactory.OperationException
EncryptionFactory
serverToClientEncryptionFor
in interface EncryptionFactory
name
- a SSH algorithm namekeyFactory
- a key factorymode
- an encryption modeEncryptionFactory.OperationException
- if an error occurspublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved