org.italiangrid.voms.asn1
public class VOMSACUtils extends Object implements VOMSConstants
Modifier and Type | Field and Description |
---|---|
static String |
POLICY_AUTHORITY_SEP |
VOMS_CERTS_OID, VOMS_EXTENSION_OID, VOMS_FQANS_OID, VOMS_GENERIC_ATTRS_OID, VOMS_HANDLED_EXTENSIONS
Modifier and Type | Method and Description |
---|---|
static VOMSAttribute |
deserializeVOMSAttributes(org.bouncycastle.asn1.x509.AttributeCertificate ac)
Deserializes the information in a VOMS attribute certificate.
|
static List<VOMSAttribute> |
deserializeVOMSAttributes(List<org.bouncycastle.asn1.x509.AttributeCertificate> acs)
Deserializes the information in a list of VOMS attribute certificates.
|
static List<org.bouncycastle.asn1.x509.AttributeCertificate> |
getACsFromCertificate(X509Certificate cert)
Deserializes the VOMS Attribute certificates, if present, in a given
certificate passed as argument
|
static List<org.bouncycastle.asn1.x509.AttributeCertificate> |
getACsFromVOMSExtension(byte[] vomsExtension)
Deserializes the VOMS Attribute certificates in a given certificate
extension
|
static byte[] |
getVOMSExtensionFromCertificate(X509Certificate cert)
Returns the VOMS extension, if present, in a given certificate
|
public static final String POLICY_AUTHORITY_SEP
public static byte[] getVOMSExtensionFromCertificate(X509Certificate cert)
cert
- the X509Certificate
where the extension will be searchedpublic static List<org.bouncycastle.asn1.x509.AttributeCertificate> getACsFromVOMSExtension(byte[] vomsExtension) throws IOException
vomsExtension
- List
of AttributeCertificate
extracted from a given extensionIOException
public static List<org.bouncycastle.asn1.x509.AttributeCertificate> getACsFromCertificate(X509Certificate cert) throws IOException
cert
- the X509Certificate
where the ACs will be searchedList
of AttributeCertificate
objects extracted from the VOMS extensionIOException
public static List<VOMSAttribute> deserializeVOMSAttributes(List<org.bouncycastle.asn1.x509.AttributeCertificate> acs)
acs
- a List
of VOMS acsVOMSAttribute
public static VOMSAttribute deserializeVOMSAttributes(org.bouncycastle.asn1.x509.AttributeCertificate ac)
ac
- a VOMS AttributeCertificate
VOMSAttribute
object which provides more convenient
access to the VOMS authorization informationCopyright © 2014. All rights reserved.