|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.SWSJContext
This class collects a number of common parameters and state variables.
SWSJContext is a variable that must be created to use the
Secure-WS-J toolkit. It holds properties that various APIs in the toolkit
use, such as an instance of an implementation of
XMLSecurityHandler an instance of an implementation of
CertValidator, the set of trusted and intermediate certificates.
| Constructor Summary | |
SWSJContext()
Creates the SWSJ context with the default providers. |
|
SWSJContext(java.security.Provider[] jceProviders)
Creates SWSJ context with the requested list of providers. |
|
SWSJContext(java.lang.String[] jceProviderNames)
Creates the SWSJ context with the requested list of providers. |
|
| Method Summary | |
getCertValidator()
Gets certificate validator. |
|
java.security.cert.X509Certificate[] |
getIntermediateCerts()
Gets an array of intermediate CA certificates. |
java.security.Provider[] |
getJCEProviders()
Gets the array of JCE provider object instances. |
getSecurityHandler()
Gets the security handler. |
|
java.security.cert.X509Certificate[] |
getTrustedCerts()
Gets an array of trusted certificates set by the user. |
java.lang.String |
getVersion()
Gets the version number. |
void |
setCertValidator(CertValidator certValidator)
Sets the certificate validator. |
void |
setIntermediateCertificates(java.security.cert.X509Certificate[] certs)
Sets an array of intermediate CA certificates. |
void |
setJCEProviders(java.security.Provider[] jceProviders)
Sets the array of JCE provider object instances. |
void |
setJCEProviders(java.lang.String[] jceProviderNames)
Initializes the JCE providers to use by name. |
void |
setSecurityHandler(XMLSecurityHandler handler)
Sets the security handler. |
void |
setTrustedCertificates(java.security.cert.X509Certificate[] certs)
Sets an array of trusted certificates to use during certificate path validation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SWSJContext()
throws ProviderException
ProviderException - If the default providers cannot be parsed.
public SWSJContext(java.lang.String[] jceProviderNames)
throws InvalidParameterException,
ProviderException
0.
jceProviderNames - The list of JCE providers to use for all
cryptographic operations.
InvalidParameterException - If jceProviderNames is
invalid.
ProviderException
public SWSJContext(java.security.Provider[] jceProviders)
throws InvalidParameterException
0.
jceProviders - An array of JCE provider objects to use for all
cryptographic operations.
InvalidParameterException - If jceProviders is
invalid.| Method Detail |
public void setJCEProviders(java.security.Provider[] jceProviders)
throws InvalidParameterException
0.
jceProviders - An array of JCE providers to use for all
cryptographic operations.
InvalidParameterException - If jceProviders is
invalid.
public void setJCEProviders(java.lang.String[] jceProviderNames)
throws InvalidParameterException,
ProviderException
jceProviderNames - An array of JCE provider names to use for all
cryptographic operations.
InvalidParameterException - If jceProviderNames is
invalid.
ProviderExceptionpublic java.security.Provider[] getJCEProviders()
public void setCertValidator(CertValidator certValidator)
null value.
certValidator - The validator to use for certificate validation.public CertValidator getCertValidator()
public void setSecurityHandler(XMLSecurityHandler handler)
throws InvalidParameterException
handler - The object that provides additional data for security
operations.
InvalidParameterException - If handler is invalid.public XMLSecurityHandler getSecurityHandler()
public java.lang.String getVersion()
public void setTrustedCertificates(java.security.cert.X509Certificate[] certs)
throws InvalidParameterException
certs - An array of trusted certificates.
InvalidParameterException - If certs is invalid.
public void setIntermediateCertificates(java.security.cert.X509Certificate[] certs)
throws InvalidParameterException
certs - An array of intermediate certificates.
InvalidParameterException - If certs is invalid.public java.security.cert.X509Certificate[] getTrustedCerts()
public java.security.cert.X509Certificate[] getIntermediateCerts()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||