Package org.italiangrid.voms.asn1
Class VOMSACGenerator
java.lang.Object
org.italiangrid.voms.asn1.VOMSACGenerator
- All Implemented Interfaces:
VOMSConstants
This AC generator provides the VOMS AC encoding starting from a set of attributes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate eu.emi.security.authn.x509.X509Credentialstatic final EnumSet<VOMSACGenerator.ACGenerationProperties> static final org.bouncycastle.asn1.ASN1ObjectIdentifierprivate org.bouncycastle.operator.ContentSignerFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.bouncycastle.asn1.ASN1Encodableprivate org.bouncycastle.asn1.x509.AuthorityKeyIdentifierprivate org.bouncycastle.asn1.ASN1EncodablebuildFQANsAttributeContent(List<String> fqans, org.bouncycastle.asn1.x509.GeneralName policyAuthorityInfo) private org.bouncycastle.asn1.ASN1EncodablebuildGAExtensionContent(EnumSet<VOMSACGenerator.ACGenerationProperties> properties, List<VOMSGenericAttribute> gas, org.bouncycastle.asn1.x509.GeneralName policyAuthorityInfo) private org.bouncycastle.cert.AttributeCertificateHolderbuildHolder(X509Certificate holderCert) private org.bouncycastle.cert.AttributeCertificateIssuerprivate org.bouncycastle.asn1.x509.GeneralNamebuildPolicyAuthorityInfo(String voName, String host, int port) private org.bouncycastle.asn1.DERSequenceprivate org.bouncycastle.asn1.ASN1EncodablebuildTargetsExtensionContent(EnumSet<VOMSACGenerator.ACGenerationProperties> properties, List<String> targets) private StringbuildVOURI(String voName, String host, int port) org.bouncycastle.cert.X509AttributeCertificateHoldergenerateVOMSAttributeCertificate(EnumSet<VOMSACGenerator.ACGenerationProperties> generationProperties, List<String> fqans, List<VOMSGenericAttribute> gas, List<String> targets, X509Certificate holderCert, BigInteger serialNumber, Date notBefore, Date notAfter, String voName, String host, int port) org.bouncycastle.cert.X509AttributeCertificateHoldergenerateVOMSAttributeCertificate(List<String> fqans, List<VOMSGenericAttribute> gas, List<String> targets, X509Certificate holderCert, BigInteger serialNumber, Date notBefore, Date notAfter, String voName, String host, int port) eu.emi.security.authn.x509.proxy.CertificateExtensiongenerateVOMSExtension(List<org.bouncycastle.cert.X509AttributeCertificateHolder> acs) private org.bouncycastle.asn1.ASN1Encodableprivate org.bouncycastle.asn1.DEROctetStringprivate org.bouncycastle.operator.ContentSignergetSigner(EnumSet<VOMSACGenerator.ACGenerationProperties> properties)
-
Field Details
-
defaultGenerationProperties
-
FAKE_EXT_OID
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier FAKE_EXT_OID -
aaCredential
private eu.emi.security.authn.x509.X509Credential aaCredential -
signer
private org.bouncycastle.operator.ContentSigner signer
-
-
Constructor Details
-
VOMSACGenerator
public VOMSACGenerator(eu.emi.security.authn.x509.X509Credential aaCredential)
-
-
Method Details
-
getSigner
private org.bouncycastle.operator.ContentSigner getSigner(EnumSet<VOMSACGenerator.ACGenerationProperties> properties) -
buildVOURI
-
buildACCertsExtensionContent
private org.bouncycastle.asn1.ASN1Encodable buildACCertsExtensionContent(EnumSet<VOMSACGenerator.ACGenerationProperties> properties) -
buildAuthorityKeyIdentifier
private org.bouncycastle.asn1.x509.AuthorityKeyIdentifier buildAuthorityKeyIdentifier() throws CertificateEncodingException, NoSuchAlgorithmException -
buildFQANsAttributeContent
-
buildGAExtensionContent
private org.bouncycastle.asn1.ASN1Encodable buildGAExtensionContent(EnumSet<VOMSACGenerator.ACGenerationProperties> properties, List<VOMSGenericAttribute> gas, org.bouncycastle.asn1.x509.GeneralName policyAuthorityInfo) -
buildHolder
private org.bouncycastle.cert.AttributeCertificateHolder buildHolder(X509Certificate holderCert) throws CertificateEncodingException - Throws:
CertificateEncodingException
-
buildIssuer
private org.bouncycastle.cert.AttributeCertificateIssuer buildIssuer() throws CertificateEncodingException- Throws:
CertificateEncodingException
-
buildPolicyAuthorityInfo
-
buildTagSequence
-
buildTargetsExtensionContent
private org.bouncycastle.asn1.ASN1Encodable buildTargetsExtensionContent(EnumSet<VOMSACGenerator.ACGenerationProperties> properties, List<String> targets) -
generateVOMSAttributeCertificate
public org.bouncycastle.cert.X509AttributeCertificateHolder generateVOMSAttributeCertificate(List<String> fqans, List<VOMSGenericAttribute> gas, List<String> targets, X509Certificate holderCert, BigInteger serialNumber, Date notBefore, Date notAfter, String voName, String host, int port) -
generateVOMSAttributeCertificate
public org.bouncycastle.cert.X509AttributeCertificateHolder generateVOMSAttributeCertificate(EnumSet<VOMSACGenerator.ACGenerationProperties> generationProperties, List<String> fqans, List<VOMSGenericAttribute> gas, List<String> targets, X509Certificate holderCert, BigInteger serialNumber, Date notBefore, Date notAfter, String voName, String host, int port) -
generateVOMSExtension
public eu.emi.security.authn.x509.proxy.CertificateExtension generateVOMSExtension(List<org.bouncycastle.cert.X509AttributeCertificateHolder> acs) -
getCertAsDEREncodable
-
getDEROctetString
-