|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.handle.security.HdlSecurityProvider
public abstract class HdlSecurityProvider
Field Summary | |
---|---|
static int |
ENCRYPT_ALG_AES
|
static int |
ENCRYPT_ALG_DES
|
static int |
ENCRYPT_ALG_DESEDE
|
Constructor Summary | |
---|---|
HdlSecurityProvider()
|
Method Summary | |
---|---|
java.security.KeyPair |
generateDHKeyPair(java.math.BigInteger p,
java.math.BigInteger g)
|
java.security.KeyPair |
generateDHKeyPair(int keySize)
|
abstract byte[] |
generateSecretKey(int keyAlg)
Generate and encode a secret key for use with the given algorithm |
javax.crypto.Cipher |
getCipher(int algorithm,
byte[] secretKey,
int direction)
Deprecated. Use getCipher(int,byte[],int,byte[],int,int) in order to specify protocol version. |
abstract javax.crypto.Cipher |
getCipher(int algorithm,
byte[] secretKey,
int direction,
byte[] iv,
int majorProtocolVersion,
int minorProtocolVersion)
Construct and return a Cipher object, initialized to either decrypt or encrypt using the given algorithm and secret key. |
byte[] |
getDESKeyFromDH(javax.crypto.interfaces.DHPublicKey pub,
javax.crypto.interfaces.DHPrivateKey priv)
|
static HdlSecurityProvider |
getInstance()
|
abstract int |
getIvSize(int algorithm,
int majorProtocolVersion,
int minorProtocolVersion)
Returns the length in bytes of the initialization vector used by the cipher generated by getCipher(). |
byte[] |
getKeyFromDH(javax.crypto.interfaces.DHPublicKey pub,
javax.crypto.interfaces.DHPrivateKey priv,
int algorithm)
Using the given diffie-hellman key pair, generate a secret key with the given algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ENCRYPT_ALG_DES
public static final int ENCRYPT_ALG_DESEDE
public static final int ENCRYPT_ALG_AES
Constructor Detail |
---|
public HdlSecurityProvider()
Method Detail |
---|
public static final HdlSecurityProvider getInstance()
@Deprecated public javax.crypto.Cipher getCipher(int algorithm, byte[] secretKey, int direction) throws java.lang.Exception
getCipher(int,byte[],int,byte[],int,int)
in order to specify protocol version.
java.lang.Exception
public abstract javax.crypto.Cipher getCipher(int algorithm, byte[] secretKey, int direction, byte[] iv, int majorProtocolVersion, int minorProtocolVersion) throws java.lang.Exception
java.lang.Exception
public abstract int getIvSize(int algorithm, int majorProtocolVersion, int minorProtocolVersion)
public abstract byte[] generateSecretKey(int keyAlg) throws java.lang.Exception
java.lang.Exception
public java.security.KeyPair generateDHKeyPair(int keySize) throws java.lang.Exception
java.lang.Exception
public java.security.KeyPair generateDHKeyPair(java.math.BigInteger p, java.math.BigInteger g) throws java.lang.Exception
java.lang.Exception
public byte[] getDESKeyFromDH(javax.crypto.interfaces.DHPublicKey pub, javax.crypto.interfaces.DHPrivateKey priv) throws java.lang.Exception
java.lang.Exception
public byte[] getKeyFromDH(javax.crypto.interfaces.DHPublicKey pub, javax.crypto.interfaces.DHPrivateKey priv, int algorithm) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |