public class JceMacFactory extends java.lang.Object implements MacFactory
Modifier and Type | Class and Description |
---|---|
static class |
JceMacFactory.Entry
An algorithm entry.
|
MacFactory.OperationException
Constructor and Description |
---|
JceMacFactory(JceMacFactory.Entry... entries)
Creates a new factory instance.
|
Modifier and Type | Method and Description |
---|---|
com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.Mac |
clientToServerMacFor(java.lang.String name,
com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.KeyFactory keyFactory)
Returns a MAC operation for client-server direction.
|
java.util.List<java.lang.String> |
macs()
Returns supported MAC algorithms.
|
com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.Mac |
serverToClientMacFor(java.lang.String name,
com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.KeyFactory keyFactory)
Returns a MAC operation for server-client direction.
|
JceMacFactory |
set(JceMacFactory.Entry... entries)
Sets algorithm entries.
|
java.lang.String |
toString() |
public JceMacFactory(JceMacFactory.Entry... entries)
entries
- entriespublic JceMacFactory set(JceMacFactory.Entry... entries)
entries
- entriespublic java.util.List<java.lang.String> macs()
MacFactory
macs
in interface MacFactory
public com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.Mac clientToServerMacFor(java.lang.String name, com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.KeyFactory keyFactory) throws MacFactory.OperationException
MacFactory
clientToServerMacFor
in interface MacFactory
name
- a SSH algorithm namekeyFactory
- a key factoryMacFactory.OperationException
- if an error occurspublic com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.Mac serverToClientMacFor(java.lang.String name, com.jscape.inet.ssh.protocol.v2.marshaling.algorithms.KeyFactory keyFactory) throws MacFactory.OperationException
MacFactory
serverToClientMacFor
in interface MacFactory
name
- a SSH algorithm namekeyFactory
- a key factoryMacFactory.OperationException
- if an error occurspublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © JSCAPE LLC. 1999-2023. All Rights Reserved