org.italiangrid.voms.asn1
Class VOMSACGenerator

java.lang.Object
  extended by org.italiangrid.voms.asn1.VOMSACGenerator
All Implemented Interfaces:
VOMSConstants

public class VOMSACGenerator
extends Object
implements VOMSConstants

This AC generator provides the VOMS AC encoding starting from a set of attributes.

Author:
Andrea Ceccanti

Field Summary
static org.bouncycastle.asn1.ASN1ObjectIdentifier FAKE_EXT_OID
           
 
Fields inherited from interface org.italiangrid.voms.asn1.VOMSConstants
VOMS_CERTS_OID, VOMS_EXTENSION_OID, VOMS_FQANS_OID, VOMS_GENERIC_ATTRS_OID, VOMS_HANDLED_EXTENSIONS
 
Constructor Summary
VOMSACGenerator(eu.emi.security.authn.x509.X509Credential aaCredential, String voName, String host, int port)
           
 
Method Summary
 org.bouncycastle.cert.X509AttributeCertificateHolder generateVOMSAttributeCertificate(List<String> fqans, List<VOMSGenericAttribute> gas, List<String> targets, X509Certificate holderCert, BigInteger serialNumber, Date notBefore, Date notAfter)
           
 eu.emi.security.authn.x509.proxy.CertificateExtension generateVOMSExtension(List<org.bouncycastle.cert.X509AttributeCertificateHolder> acs)
           
 void setIncludeCriticalAKID(boolean includeCriticalAKID)
           
 void setIncludeCriticalNoRevAvail(boolean includeCriticalNoRevAvail)
           
 void setIncludeEmptyACCertsExtension(boolean includeEmptyACCertsExtension)
           
 void setIncludeFakeCriticalExtensions(boolean includeFakeCriticalExtensions)
           
 void setSkipACCertsExtension(boolean skipACCertsExtension)
           
 void setUseFakeSignatureBits(boolean useFakeSignatureBits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAKE_EXT_OID

public static final org.bouncycastle.asn1.ASN1ObjectIdentifier FAKE_EXT_OID
Constructor Detail

VOMSACGenerator

public VOMSACGenerator(eu.emi.security.authn.x509.X509Credential aaCredential,
                       String voName,
                       String host,
                       int port)
Method Detail

generateVOMSAttributeCertificate

public org.bouncycastle.cert.X509AttributeCertificateHolder generateVOMSAttributeCertificate(List<String> fqans,
                                                                                             List<VOMSGenericAttribute> gas,
                                                                                             List<String> targets,
                                                                                             X509Certificate holderCert,
                                                                                             BigInteger serialNumber,
                                                                                             Date notBefore,
                                                                                             Date notAfter)

generateVOMSExtension

public eu.emi.security.authn.x509.proxy.CertificateExtension generateVOMSExtension(List<org.bouncycastle.cert.X509AttributeCertificateHolder> acs)

setIncludeEmptyACCertsExtension

public void setIncludeEmptyACCertsExtension(boolean includeEmptyACCertsExtension)
Parameters:
includeEmptyACCertsExtension - the includeEmptyACCertsExtension to set

setSkipACCertsExtension

public void setSkipACCertsExtension(boolean skipACCertsExtension)
Parameters:
skipACCertsExtension - the skipACCertsExtension to set

setUseFakeSignatureBits

public void setUseFakeSignatureBits(boolean useFakeSignatureBits)
Parameters:
useFakeSignatureBits - the useFakeSignatureBits to set

setIncludeFakeCriticalExtensions

public void setIncludeFakeCriticalExtensions(boolean includeFakeCriticalExtensions)
Parameters:
includeFakeCriticalExtensions - the includeFakeCriticalExtensions to set

setIncludeCriticalNoRevAvail

public void setIncludeCriticalNoRevAvail(boolean includeCriticalNoRevAvail)
Parameters:
includeCriticalNoRevAvail - the includeCriticalNoRevAvail to set

setIncludeCriticalAKID

public void setIncludeCriticalAKID(boolean includeCriticalAKID)
Parameters:
includeCriticalAKID - the includeCriticalAKID to set


Copyright © 2013. All Rights Reserved.