Class ProxyACExtension
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- eu.emi.security.authn.x509.helpers.proxy.ProxyACExtension
-
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class ProxyACExtension extends org.bouncycastle.asn1.ASN1ObjectA class for handling the VOMS AC extension in certificates (OID: 1.3.6.1.4.1.8005.100.100.5)- Author:
- K. Benedyczak
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAC_OIDThe OID for the AC assertion.
-
Constructor Summary
Constructors Constructor Description ProxyACExtension(byte[] bytes)Generates a new ProxyACExtension object form the byte arrayProxyACExtension(org.bouncycastle.asn1.x509.AttributeCertificate[] certificates)Used to generate an instance from the AttributeCertificate object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.AttributeCertificate[]getAttributeCertificates()Used to get the AC extension object.static ProxyACExtensiongetInstance(java.security.cert.X509Certificate cert)Returns the AC extension form the certificate.org.bouncycastle.asn1.ASN1PrimitivetoASN1Primitive()
-
-
-
Field Detail
-
AC_OID
public static final java.lang.String AC_OID
The OID for the AC assertion.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProxyACExtension
public ProxyACExtension(byte[] bytes) throws java.io.IOExceptionGenerates a new ProxyACExtension object form the byte array- Parameters:
bytes- bytes- Throws:
java.io.IOException- IO exception
-
ProxyACExtension
public ProxyACExtension(org.bouncycastle.asn1.x509.AttributeCertificate[] certificates)
Used to generate an instance from the AttributeCertificate object.- Parameters:
certificates- the AC
-
-
Method Detail
-
getInstance
public static ProxyACExtension getInstance(java.security.cert.X509Certificate cert) throws java.io.IOException
Returns the AC extension form the certificate.- Parameters:
cert- certificate- Returns:
- The AC extension object. In no extension was found, null is returned.
- Throws:
java.io.IOException- In case there is a problem parsing the certificate.
-
getAttributeCertificates
public org.bouncycastle.asn1.x509.AttributeCertificate[] getAttributeCertificates()
Used to get the AC extension object.- Returns:
- The AC object
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object
-
-