|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.beasys.commerce.ebusiness.security.KeyFactory
public class KeyFactory
Factory for both a private and public key. This class is
a singleton class. The KeyFactory
class is bound
in JNDI to prevent the cached singleton from being garbage
collected.
Field Summary | |
---|---|
protected static KeyFactory |
singletonInstance
|
Method Summary | |
---|---|
static KeyFactory |
getInstance()
Retrieves the singleton instance of a KeyFactory . |
com.rsa.jsafe.JSAFE_PrivateKey |
getPrivateKey()
Returns the private key associated with the KeyFactory . |
static com.rsa.jsafe.JSAFE_PrivateKey |
getPrivateKey(String password)
Returns the private key encrypted with password. |
static com.rsa.jsafe.JSAFE_PublicKey |
getPublicKey()
Returns the public key associated with the KeyFactory . |
void |
init(String password)
Initializes the KeyFactory with a private password used for
private key decryption. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static KeyFactory singletonInstance
Method Detail |
---|
public static KeyFactory getInstance()
KeyFactory
.
public static com.rsa.jsafe.JSAFE_PublicKey getPublicKey()
KeyFactory
.
KeyFactory
.public com.rsa.jsafe.JSAFE_PrivateKey getPrivateKey() throws InconsistentStateException
KeyFactory
.
KeyFactory
.
InconsistentStateException
- if the KeyFactory
has not been initialized.public static com.rsa.jsafe.JSAFE_PrivateKey getPrivateKey(String password)
password
- The password used to encrypt the private key
public void init(String password)
KeyFactory
with a private password used for
private key decryption.
password
- The private password.
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |