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 |
---|---|
Encryption |
clientToServerEncryptionFor(java.lang.String name,
KeyFactory keyFactory,
EncryptionFactory.Mode mode)
Returns an encryption operation for client-server direction.
|
java.util.List<java.lang.String> |
encryptions()
Returns supported encryption algorithms.
|
Encryption |
serverToClientEncryptionFor(java.lang.String name,
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 Encryption clientToServerEncryptionFor(java.lang.String name, 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 Encryption serverToClientEncryptionFor(java.lang.String name, 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