|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.italiangrid.voms.ac.impl.DefaultVOMSACParser
org.italiangrid.voms.ac.impl.DefaultVOMSValidator
public class DefaultVOMSValidator
The default implementation of the VOMS validator.
| Nested Class Summary | |
|---|---|
static class |
DefaultVOMSValidator.Builder
|
| Field Summary | |
|---|---|
static String |
DEFAULT_TRUST_ANCHORS_DIR
|
| Method Summary | |
|---|---|
void |
setValidationResultListener(ValidationResultListener listener)
Sets a listener that will received validation-related events for this VOMSACValidator. |
void |
shutdown()
Shutdown the VOMS validator. |
protected List<VOMSValidationResult> |
validate()
|
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). |
| Methods inherited from class org.italiangrid.voms.ac.impl.DefaultVOMSACParser |
|---|
getCertChain, parse, parse, setCertChain |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.italiangrid.voms.ac.VOMSACParser |
|---|
parse |
| Field Detail |
|---|
public static final String DEFAULT_TRUST_ANCHORS_DIR
| Method Detail |
|---|
public List<VOMSValidationResult> validateWithResult(X509Certificate[] validatedChain)
VOMSACValidatorVOMSValidationResult 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.
validateWithResult in interface VOMSACValidatorVOMSValidationResult object providing access to validation results and
related attributesprotected List<VOMSValidationResult> validate()
public List<VOMSAttribute> validate(X509Certificate[] validatedChain)
VOMSACValidatorValidationResultListener to
get details about validation error and warning messages.
Use the VOMSACValidator.validateWithResult(X509Certificate[]) method in case you don't want to rely on a ValidationResultListener.
validate in interface VOMSACValidatorvalidatedChain - a validated X.509 certificate chain
VOMSAttribute object providing access to the validated VOMS attributespublic void shutdown()
VOMSACValidator
shutdown in interface VOMSACValidatorpublic List<org.bouncycastle.asn1.x509.AttributeCertificate> validateACs(List<org.bouncycastle.asn1.x509.AttributeCertificate> acs)
VOMSACValidator
validateACs in interface VOMSACValidatoracs - a list of AttributeCertificate
AttributeCertificate objectpublic void setValidationResultListener(ValidationResultListener listener)
VOMSACValidatorVOMSACValidator.
setValidationResultListener in interface VOMSACValidatorlistener - the listener that will receive validation-related events.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||