|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.keystore.KeystoreManager
public class KeystoreManager
This interface describes a class that manages keys and certificates in a secure manner. It's built on top of the JDK 1.4+ JSSE integration, and provides all the necessary logic to work well within the ManifoldCF java environment.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected java.security.KeyStore |
keystore
|
protected java.lang.String |
passcode
|
| Constructor Summary | |
|---|---|
KeystoreManager(java.lang.String passcode)
Create the keystore object. |
|
KeystoreManager(java.lang.String passcode,
java.lang.String base64String)
Create the keystore object from an existing base 64 string. |
|
| Method Summary | |
|---|---|
void |
addCertificate(java.lang.String alias,
java.security.cert.Certificate certificate)
Add a certificate to the keystore. |
java.security.cert.Certificate |
getCertificate(java.lang.String alias)
Read a certificate from the keystore. |
java.lang.String[] |
getContents()
Grab a list of the aliases in the key store. |
java.lang.String |
getDescription(java.lang.String alias)
For an alias, get some descriptive information from the object in the keystore. |
javax.net.ssl.SSLSocketFactory |
getSecureSocketFactory()
Build a secure socket factory based on this keystore. |
java.lang.String |
getString()
Convert to a base64 string. |
void |
importCertificate(java.lang.String alias,
java.io.InputStream certData)
Import a certificate or key into the list. |
void |
remove(java.lang.String alias)
Remove a certificate. |
| 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 _rcsid
protected java.lang.String passcode
protected java.security.KeyStore keystore
| Constructor Detail |
|---|
public KeystoreManager(java.lang.String passcode)
throws ManifoldCFException
ManifoldCFException
public KeystoreManager(java.lang.String passcode,
java.lang.String base64String)
throws ManifoldCFException
ManifoldCFException| Method Detail |
|---|
public java.lang.String[] getContents()
throws ManifoldCFException
getContents in interface IKeystoreManagerManifoldCFException
public java.lang.String getDescription(java.lang.String alias)
throws ManifoldCFException
getDescription in interface IKeystoreManageralias - is the alias name.
ManifoldCFException
public void importCertificate(java.lang.String alias,
java.io.InputStream certData)
throws ManifoldCFException
importCertificate in interface IKeystoreManageralias - is the name of the certificate.certData - is the binary data for the certificate.
ManifoldCFException
public java.security.cert.Certificate getCertificate(java.lang.String alias)
throws ManifoldCFException
getCertificate in interface IKeystoreManagerManifoldCFException
public void addCertificate(java.lang.String alias,
java.security.cert.Certificate certificate)
throws ManifoldCFException
addCertificate in interface IKeystoreManagerManifoldCFException
public void remove(java.lang.String alias)
throws ManifoldCFException
remove in interface IKeystoreManageralias - is the name of the certificate to remove.
ManifoldCFException
public java.lang.String getString()
throws ManifoldCFException
getString in interface IKeystoreManagerManifoldCFException
public javax.net.ssl.SSLSocketFactory getSecureSocketFactory()
throws ManifoldCFException
getSecureSocketFactory in interface IKeystoreManagerManifoldCFException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||