|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.osgi.service.security.TrustEngine
org.eclipse.osgi.internal.service.security.KeyStoreTrustEngine
public class KeyStoreTrustEngine
| Constructor Summary | |
|---|---|
KeyStoreTrustEngine(String path,
String type,
char[] password,
String name)
Create a new KeyStoreTrustEngine that is backed by a KeyStore |
|
| Method Summary | |
|---|---|
protected String |
doAddTrustAnchor(Certificate cert,
String alias)
Add a trust anchor point to this trust engine. |
protected void |
doRemoveTrustAnchor(Certificate cert)
Remove a trust anchor point from the engine, based on the certificate itself. |
protected void |
doRemoveTrustAnchor(String alias)
Remove a trust anchor point from the engine, based on the human readable "friendly name" |
Certificate |
findTrustAnchor(Certificate[] certChain)
Returns the certificate trust anchor contained in the specified chain which was used to establish the authenticity of the chain. |
String[] |
getAliases()
Return the list of friendly name aliases for the TrustAnchors installed in the engine. |
String |
getName()
Return a representation string of this trust engine |
Certificate |
getTrustAnchor(String alias)
Return the certificate associated with the unique "friendly name" in the engine. |
boolean |
isReadOnly()
Return a value indicate whether this trust engine is read-only. |
| Methods inherited from class org.eclipse.osgi.service.security.TrustEngine |
|---|
addTrustAnchor, removeTrustAnchor, removeTrustAnchor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyStoreTrustEngine(String path,
String type,
char[] password,
String name)
path - - path to the keystoretype - - the type of keystore at the path locationpassword - - the password required to unlock the keystore| Method Detail |
|---|
public Certificate findTrustAnchor(Certificate[] certChain)
throws IOException
TrustEnginenull is returned.
findTrustAnchor in class TrustEnginecertChain - - a complete or incomplete certificate chain, implementations *MAY* complete chains
IOException - if there is a problem connecting to the backing store
protected String doAddTrustAnchor(Certificate cert,
String alias)
throws IOException,
GeneralSecurityException
TrustEnginenull is used
as the alias then an alias will be generated based on the trust anchor certificate.
doAddTrustAnchor in class TrustEnginecert - - the certificate to add as an anchor pointalias - - a unique and human-readable 'friendly name' which can be used to reference the certificate.
A null value may be used.
IOException - if there is a problem connecting to the backing store
GeneralSecurityException - if there is a certificate problem
protected void doRemoveTrustAnchor(Certificate cert)
throws IOException,
GeneralSecurityException
TrustEngine
doRemoveTrustAnchor in class TrustEnginecert - - the certificate to be removed
IOException - if there is a problem connecting to the backing store
GeneralSecurityException - if there is a certificate problem
protected void doRemoveTrustAnchor(String alias)
throws IOException,
GeneralSecurityException
TrustEngine
doRemoveTrustAnchor in class TrustEnginealias - - the name of the trust anchor
IOException - if there is a problem connecting to the backing store
GeneralSecurityException - if there is a certificate problem
public Certificate getTrustAnchor(String alias)
throws IOException,
GeneralSecurityException
TrustEngine
getTrustAnchor in class TrustEnginealias - - the friendly name
IOException - if there is a problem connecting to the backing store
GeneralSecurityException - if there is a certificate problem
public String[] getAliases()
throws IOException,
GeneralSecurityException
TrustEngine
getAliases in class TrustEngineIOException - if there is a problem connecting to the backing store
GeneralSecurityException - if there is a certificate problempublic boolean isReadOnly()
TrustEngine
isReadOnly in class TrustEnginepublic String getName()
TrustEngine
getName in class TrustEngine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||