eu.emi.security.authn.x509.helpers.proxy
Class ProxyACExtension

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by eu.emi.security.authn.x509.helpers.proxy.ProxyACExtension
All Implemented Interfaces:
DEREncodable

public class ProxyACExtension
extends ASN1Encodable

A 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
static String AC_OID
          The OID for the AC assertion.
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
ProxyACExtension(AttributeCertificate[] certificates)
          Used to generate an instance from the AttributeCertificate object.
ProxyACExtension(byte[] bytes)
          Generates a new ProxyACExtension object form the byte array
 
Method Summary
 AttributeCertificate[] getAttributeCertificates()
          Used to get the AC extension object.
static ProxyACExtension getInstance(X509Certificate cert)
          Returns the AC extension form the certificate.
 DERObject toASN1Object()
          
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AC_OID

public static final String AC_OID
The OID for the AC assertion.

See Also:
Constant Field Values
Constructor Detail

ProxyACExtension

public ProxyACExtension(byte[] bytes)
                 throws IOException
Generates a new ProxyACExtension object form the byte array

Parameters:
bytes -
Throws:
IOException

ProxyACExtension

public ProxyACExtension(AttributeCertificate[] certificates)
Used to generate an instance from the AttributeCertificate object.

Parameters:
certificates - the AC
Method Detail

getInstance

public static ProxyACExtension getInstance(X509Certificate cert)
                                    throws IOException
Returns the AC extension form the certificate.

Returns:
The AC extension object. In no extension was found, null is returned.
Throws:
IOException - In case there is a problem parsing the certificate.

getAttributeCertificates

public AttributeCertificate[] getAttributeCertificates()
Used to get the AC extension object.

Returns:
The AC object

toASN1Object

public DERObject toASN1Object()

Specified by:
toASN1Object in class ASN1Encodable


Copyright © 2012-2013 European Middleware Initiative. All Rights Reserved.