|
||||||||||
| 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(java.lang.String path,
java.lang.String type,
char[] password,
java.lang.String name)
Create a new KeyStoreTrustEngine that is backed by a KeyStore |
|
| Method Summary | |
|---|---|
protected java.lang.String |
doAddTrustAnchor(java.security.cert.Certificate cert,
java.lang.String alias)
Add a trust anchor point to this trust engine. |
protected void |
doRemoveTrustAnchor(java.security.cert.Certificate cert)
Remove a trust anchor point from the engine, based on the certificate itself. |
protected void |
doRemoveTrustAnchor(java.lang.String alias)
Remove a trust anchor point from the engine, based on the human readable "friendly name" |
java.security.cert.Certificate |
findTrustAnchor(java.security.cert.Certificate[] certChain)
Returns the certificate trust anchor contained in the specified chain which was used to establish the authenticity of the chain. |
java.lang.String[] |
getAliases()
Return the list of friendly name aliases for the TrustAnchors installed in the engine. |
java.lang.String |
getName()
Return a representation string of this trust engine |
java.security.cert.Certificate |
getTrustAnchor(java.lang.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(java.lang.String path,
java.lang.String type,
char[] password,
java.lang.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 java.security.cert.Certificate findTrustAnchor(java.security.cert.Certificate[] certChain)
throws java.io.IOException
TrustEnginenull is returned.
findTrustAnchor in class TrustEnginecertChain - - a complete or incomplete certificate chain, implementations *MAY* complete chains
java.io.IOException - if there is a problem connecting to the backing store
protected java.lang.String doAddTrustAnchor(java.security.cert.Certificate cert,
java.lang.String alias)
throws java.io.IOException,
java.security.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.
java.io.IOException - if there is a problem connecting to the backing store
java.security.GeneralSecurityException - if there is a certificate problem
protected void doRemoveTrustAnchor(java.security.cert.Certificate cert)
throws java.io.IOException,
java.security.GeneralSecurityException
TrustEngine
doRemoveTrustAnchor in class TrustEnginecert - - the certificate to be removed
java.io.IOException - if there is a problem connecting to the backing store
java.security.GeneralSecurityException - if there is a certificate problem
protected void doRemoveTrustAnchor(java.lang.String alias)
throws java.io.IOException,
java.security.GeneralSecurityException
TrustEngine
doRemoveTrustAnchor in class TrustEnginealias - - the name of the trust anchor
java.io.IOException - if there is a problem connecting to the backing store
java.security.GeneralSecurityException - if there is a certificate problem
public java.security.cert.Certificate getTrustAnchor(java.lang.String alias)
throws java.io.IOException,
java.security.GeneralSecurityException
TrustEngine
getTrustAnchor in class TrustEnginealias - - the friendly name
java.io.IOException - if there is a problem connecting to the backing store
java.security.GeneralSecurityException - if there is a certificate problem
public java.lang.String[] getAliases()
throws java.io.IOException,
java.security.GeneralSecurityException
TrustEngine
getAliases in class TrustEnginejava.io.IOException - if there is a problem connecting to the backing store
java.security.GeneralSecurityException - if there is a certificate problempublic boolean isReadOnly()
TrustEngine
isReadOnly in class TrustEnginepublic java.lang.String getName()
TrustEngine
getName in class TrustEngine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||