|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface X509CertChainValidator
Implementations are used to perform a manual certificate chain validation. Implementations shall reuse as many of existing CertificateChecker implementations as possible. Implementations must be thread safe.
ValidationResult
Method Summary | |
---|---|
void |
addUpdateListener(StoreUpdateListener listener)
Registers a listener which can react to errors found during refreshing of the trust material: trusted CAs or CRLs. |
void |
addValidationListener(ValidationErrorListener listener)
Registers a listener which can react to errors found during certificate validation. |
X509Certificate[] |
getTrustedIssuers()
Returns a list of trusted issuers of certificates. |
void |
removeUpdateListener(StoreUpdateListener listener)
Unregisters a previously registered CA or CRL update listener. |
void |
removeValidationListener(ValidationErrorListener listener)
Unregisters a previously registered validation listener. |
ValidationResult |
validate(CertPath certPath)
Performs validation of a provided certificate path. |
ValidationResult |
validate(X509Certificate[] certChain)
Performs validation of a provided certificate chain. |
Method Detail |
---|
ValidationResult validate(CertPath certPath)
certPath
- to be validated
ValidationResult validate(X509Certificate[] certChain)
certChain
- to be validated
X509Certificate[] getTrustedIssuers()
void addValidationListener(ValidationErrorListener listener)
ValidationError
, not the exception.
listener
- to be registeredvoid removeValidationListener(ValidationErrorListener listener)
listener
- to be unregisteredvoid addUpdateListener(StoreUpdateListener listener)
listener
- to be registeredvoid removeUpdateListener(StoreUpdateListener listener)
listener
- to be unregistered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |