|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glite.security.voms.VOMSValidator
boolean isAdmin = new VOMSValidator(certChain).validate().getRoles("MyVO").contains("admin");
public class VOMSValidator
| Nested Class Summary | |
|---|---|
class |
VOMSValidator.FQANTree
Deprecated. Class to sort out the hierarchial properties of FQANs. |
| Field Summary | |
|---|---|
static java.lang.String |
VOMS_EXT_OID
Deprecated. |
| Constructor Summary | |
|---|---|
VOMSValidator(java.security.cert.X509Certificate validatedCert)
Deprecated. Convenience constructor in the case where you have a single cert and not a chain. |
|
VOMSValidator(java.security.cert.X509Certificate[] validatedChain)
Deprecated. Convenience constructor Same as VOMSValidator(validatedChain, null) |
|
VOMSValidator(java.security.cert.X509Certificate[] validatedChain,
ACValidator acValidator)
Deprecated. If validatedChain is null, a call to
setValidatedChain() MUST be made before calling
parse() or validate(). |
|
| Method Summary | |
|---|---|
java.util.List |
getCapabilities(java.lang.String subGroup)
Deprecated. Returns a list of all capabilities attributed to a (sub)group, by combining all VOMS attributes in a hiearchial fashion. |
java.util.List |
getRoles(java.lang.String subGroup)
Deprecated. Returns a list of all roles attributed to a (sub)group, by combining all VOMS attributes in a hiearchial fashion. |
java.util.List |
getVOMSAttributes()
Deprecated. Returns a list of VOMS attributes, parsed and possibly validated. |
boolean |
isValidated()
Deprecated. |
VOMSValidator |
parse()
Deprecated. use the parse(X509Certificate[]) instead |
static java.util.Vector |
parse(java.security.cert.X509Certificate[] myValidatedChain)
Deprecated. Parses the assumed-validated certificate chain (which may also include proxy certs) for any occurances of VOMS extensions containing attribute certificates issued to the end entity in the certificate chain. |
VOMSValidator |
setClientChain(java.security.cert.X509Certificate[] validatedChain)
Deprecated. Convenience method: enables you to reuse a VOMSValidator
instance for another client chain, thus avoiding overhead in
instantiating validators and trust stores and other potentially
expensive operations. |
static void |
setTrustStore(ACTrustStore trustStore)
Deprecated. Sets the ACTrustStore instance to use with the default ACValidator. |
java.lang.String |
toString()
Deprecated. |
VOMSValidator |
validate()
Deprecated. Parses the assumed-validated certificate chain (which may also include proxy certs) for any occurances of VOMS extensions containing attribute certificates issued to the end entity in the certificate chain. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VOMS_EXT_OID
| Constructor Detail |
|---|
public VOMSValidator(java.security.cert.X509Certificate validatedCert)
cert - VOMSValidator(X509Certificate[])public VOMSValidator(java.security.cert.X509Certificate[] validatedChain)
VOMSValidator(validatedChain, null)
validatedChain -
public VOMSValidator(java.security.cert.X509Certificate[] validatedChain,
ACValidator acValidator)
validatedChain is null, a call to
setValidatedChain() MUST be made before calling
parse() or validate().
validatedChain - The (full), validated certificate chainacValidator - The AC validator implementation to use (null is default with a BasicVOMSTrustStore)ACValidator,
BasicVOMSTrustStore| Method Detail |
|---|
public static void setTrustStore(ACTrustStore trustStore)
BasicVOMSTrustStore
trustStore - BasicVOMSTrustStorepublic VOMSValidator setClientChain(java.security.cert.X509Certificate[] validatedChain)
VOMSValidator
instance for another client chain, thus avoiding overhead in
instantiating validators and trust stores and other potentially
expensive operations.
vomsValidator.setValidatedChain(chain).validate().getVOMSAttributes();
validatedChain - The new validated certificate chain to inspect
public static java.util.Vector parse(java.security.cert.X509Certificate[] myValidatedChain)
validate()public VOMSValidator parse()
new VOMSValidator(certChain).parse().getVOMSAttributes();
validate()public VOMSValidator validate()
new VOMSValidator(certChain).parse().getVOMSAttributes();
parse()public java.util.List getVOMSAttributes()
VOMSAttributeVOMSAttribute,
parse(),
validate(),
isValidated()public java.util.List getRoles(java.lang.String subGroup)
parse() or
validate() must have been called before calling
this method. Otherwise, an IllegalStateException
is thrown.
subGroup -
#FQANTreepublic java.util.List getCapabilities(java.lang.String subGroup)
parse() or
validate() must have been called before calling
this method. Otherwise, an IllegalStateException
is thrown.
subGroup -
#FQANTreepublic boolean isValidated()
validate()public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||