|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wss4j.dom.validate.SignatureTrustValidator
public class SignatureTrustValidator
This class verifies trust in a credential used to verify a signature, which is extracted from the Credential passed to the validate method.
| Constructor Summary | |
|---|---|
SignatureTrustValidator()
|
|
| Method Summary | |
|---|---|
protected Crypto |
getCrypto(RequestData data)
|
Credential |
validate(Credential credential,
RequestData data)
Validate the credential argument. |
protected void |
validateCertificates(X509Certificate[] certificates)
Validate the certificates by checking the validity of each cert |
protected void |
validatePublicKey(PublicKey publicKey,
Crypto crypto)
Validate a public key |
protected void |
verifyTrustInCerts(X509Certificate[] certificates,
Crypto crypto,
RequestData data,
boolean enableRevocation)
Evaluate whether the given certificate chain should be trusted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SignatureTrustValidator()
| Method Detail |
|---|
public Credential validate(Credential credential,
RequestData data)
throws WSSecurityException
validate in interface Validatorcredential - the Credential to be validateddata - the RequestData associated with the request
WSSecurityException - on a failed validationprotected Crypto getCrypto(RequestData data)
protected void validateCertificates(X509Certificate[] certificates)
throws WSSecurityException
WSSecurityException
protected void verifyTrustInCerts(X509Certificate[] certificates,
Crypto crypto,
RequestData data,
boolean enableRevocation)
throws WSSecurityException
certificates - the certificate chain that should be validated against the keystorecrypto - A Crypto instancedata - A RequestData instanceenableRevocation - Whether revocation is enabled or not
WSSecurityException - if the certificate chain is not trusted
protected void validatePublicKey(PublicKey publicKey,
Crypto crypto)
throws WSSecurityException
WSSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||