public interface VOMSACValidator extends VOMSACParser
VOMSACParser interface and provides methods
to perform validation on the VOMS Attribute Certificates parsed from a given
certificate chain.| Modifier and Type | Method and Description |
|---|---|
void |
setValidationResultListener(ValidationResultListener listener)
Sets a listener that will received validation-related events for this
VOMSACValidator. |
void |
shutdown()
Shutdown the VOMS validator.
|
List<VOMSAttribute> |
validate(X509Certificate[] validatedChain)
Parses and validates the VOMS attributes found in the certificate chain passed
as argument (which is assumed to be validated already).
|
List<org.bouncycastle.asn1.x509.AttributeCertificate> |
validateACs(List<org.bouncycastle.asn1.x509.AttributeCertificate> acs)
Validates the VOMS attributes found in the attribute certificate list passed as argument.
|
List<VOMSValidationResult> |
validateWithResult(X509Certificate[] validatedChain)
Parses and validates the VOMS attributes found in the certificate chain passed
as argument (which is assumed to be validated already).
|
parseList<VOMSAttribute> validate(X509Certificate[] validatedChain)
ValidationResultListener to
get details about validation error and warning messages.
Use the validateWithResult(X509Certificate[]) method in case you don't want to rely on a ValidationResultListener.validatedChain - a validated X.509 certificate chainVOMSAttribute object providing access to the validated VOMS attributesList<VOMSValidationResult> validateWithResult(X509Certificate[] validatedChain)
VOMSValidationResult objects which describe the outcome
of the validation for each VOMS AC found in the certificate chain.
This method is useful when you want to use a single call to get all details about validation without
relying on the registration of a ValidationResultListener.validatedChain - VOMSValidationResult object providing access to validation results and
related attributesList<org.bouncycastle.asn1.x509.AttributeCertificate> validateACs(List<org.bouncycastle.asn1.x509.AttributeCertificate> acs)
acs - a list of AttributeCertificateAttributeCertificate objectvoid setValidationResultListener(ValidationResultListener listener)
VOMSACValidator.listener - the listener that will receive validation-related events.void shutdown()
Copyright © 2014. All rights reserved.