org.italiangrid.voms.ac.impl
Class DefaultVOMSACParser

java.lang.Object
  extended by org.italiangrid.voms.ac.impl.DefaultVOMSACParser
All Implemented Interfaces:
VOMSACParser
Direct Known Subclasses:
DefaultVOMSValidator

public class DefaultVOMSACParser
extends Object
implements VOMSACParser

Default implementation of the VOMS attribute certificate parsing logic.

Author:
Andrea Ceccanti

Constructor Summary
DefaultVOMSACParser()
           
DefaultVOMSACParser(VOMSACLookupStrategy strategy)
           
 
Method Summary
protected  X509Certificate[] getCertChain()
           
protected  List<VOMSAttribute> parse()
           
 List<VOMSAttribute> parse(X509Certificate[] validatedChain)
          Looks for and parses VOMS attributes in the certificate chain passed as argument (which is assumed to be already validated).
protected  void setCertChain(X509Certificate[] certChain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultVOMSACParser

public DefaultVOMSACParser()

DefaultVOMSACParser

public DefaultVOMSACParser(VOMSACLookupStrategy strategy)
Method Detail

parse

public List<VOMSAttribute> parse(X509Certificate[] validatedChain)
Description copied from interface: VOMSACParser
Looks for and parses VOMS attributes in the certificate chain passed as argument (which is assumed to be already validated).

Specified by:
parse in interface VOMSACParser
Parameters:
validatedChain - a validated X.509 certificate chain
Returns:
a possibly empty list of VOMSAttribute objects providing access to the parsed VOMS attributes

parse

protected List<VOMSAttribute> parse()

getCertChain

protected X509Certificate[] getCertChain()
Returns:
the certChain

setCertChain

protected void setCertChain(X509Certificate[] certChain)
Parameters:
certChain - the certChain to set


Copyright © 2013. All Rights Reserved.