public final class HSAdapterFactory
extends java.lang.Object
| Constructor and Description |
|---|
HSAdapterFactory() |
| Modifier and Type | Method and Description |
|---|---|
static HSAdapter |
newInstance() |
static HSAdapter |
newInstance(java.lang.String adminHandle,
int keyIndex,
byte[] secretKey) |
static HSAdapter |
newInstance(java.lang.String adminHandle,
int keyIndex,
byte[] privateKey,
byte[] cipher) |
public static HSAdapter newInstance()
public static HSAdapter newInstance(java.lang.String adminHandle, int keyIndex, byte[] privateKey, byte[] cipher) throws HandleException
adminHandle - The administrative Handle of the user.keyIndex - The index at which the public key is present in the
administrative Handle.privateKey - The byte array of the private key that matches the public key.cipher - The byte array of the cipher used to encrypt the keys. Use
null for unencrypted keys.HandleException - Thrown when the authentication information is invalid.public static HSAdapter newInstance(java.lang.String adminHandle, int keyIndex, byte[] secretKey) throws HandleException
adminHandle - The administrative Handle of the user.keyIndex - The index at which the public key is present in the
administrative Handle.secretKey - The byte array of the secret key.HandleException - Thrown when the authentication information is invalid.