public class CipherFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
KEYSTORE_PASSWORD
The default password to use for the .h2.keystore file
|
Modifier and Type | Method and Description |
---|---|
static ServerSocket |
createServerSocket(int port,
InetAddress bindAddress)
Create a secure server socket.
|
static Socket |
createSocket(InetAddress address,
int port)
Create a secure client socket that is connected to the given address and port.
|
static BlockCipher |
getBlockCipher(String algorithm)
Get a new block cipher object for the given algorithm.
|
static KeyStore |
getKeyStore(String password)
Get the keystore object using the given password.
|
public static final String KEYSTORE_PASSWORD
public static BlockCipher getBlockCipher(String algorithm)
algorithm
- the algorithmpublic static Socket createSocket(InetAddress address, int port) throws IOException
address
- the address to connect toport
- the portIOException
public static ServerSocket createServerSocket(int port, InetAddress bindAddress) throws IOException
port
- the port to listen onbindAddress
- the address to bind to, or null to bind to all
addressesIOException
public static KeyStore getKeyStore(String password) throws IOException
password
- the keystore passwordIOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.