|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.italiangrid.voms.asn1.VOMSACUtils
public class VOMSACUtils
A set of VOMS AC handling utilities.
Field Summary | |
---|---|
static String |
POLICY_AUTHORITY_SEP
|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String POLICY_AUTHORITY_SEP
Method Detail |
---|
public static byte[] getVOMSExtensionFromCertificate(X509Certificate cert)
cert
- the X509Certificate
where the extension will be searched
public static List<org.bouncycastle.asn1.x509.AttributeCertificate> getACsFromVOMSExtension(byte[] vomsExtension) throws IOException
vomsExtension
-
List
of AttributeCertificate
extracted from a given extension
IOException
public static List<org.bouncycastle.asn1.x509.AttributeCertificate> getACsFromCertificate(X509Certificate cert) throws IOException
cert
- the X509Certificate
where the ACs will be searched
List
of AttributeCertificate
objects extracted from the VOMS extension
IOException
public static List<VOMSAttribute> deserializeVOMSAttributes(List<org.bouncycastle.asn1.x509.AttributeCertificate> acs)
acs
- a List
of VOMS acs
VOMSAttribute
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 information
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |