|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.security.CipherFactory
public class CipherFactory
A factory to create new block cipher objects.
Field Summary | |
---|---|
static java.lang.String |
KEYSTORE_PASSWORD
The default password to use for the .h2.keystore file |
Method Summary | |
---|---|
static java.net.ServerSocket |
createServerSocket(int port,
java.net.InetAddress bindAddress)
Create a secure server socket. |
static java.net.Socket |
createSocket(java.net.InetAddress address,
int port)
Create a secure client socket that is connected to the given address and port. |
static BlockCipher |
getBlockCipher(java.lang.String algorithm)
Get a new block cipher object for the given algorithm. |
static SHA256 |
getHash(java.lang.String algorithm)
Get a new cryptographic hash object for the given algorithm. |
static java.security.KeyStore |
getKeyStore(java.lang.String password)
Get the keystore object using the given password. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEYSTORE_PASSWORD
Method Detail |
---|
public static BlockCipher getBlockCipher(java.lang.String algorithm)
algorithm
- the algorithm
public static SHA256 getHash(java.lang.String algorithm)
algorithm
- the algorithm
public static java.net.Socket createSocket(java.net.InetAddress address, int port) throws java.io.IOException
address
- the address to connect toport
- the port
java.io.IOException
public static java.net.ServerSocket createServerSocket(int port, java.net.InetAddress bindAddress) throws java.io.IOException
port
- the port to listen onbindAddress
- the address to bind to, or null to bind to all
addresses
java.io.IOException
public static java.security.KeyStore getKeyStore(java.lang.String password) throws java.io.IOException
password
- the keystore password
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |