|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.voms.VOMSAttribute
public class VOMSAttribute
Representation of the authorization information (VO, server address and list of Fully Qualified Attribute Names, or FQANs) contained in a VOMS attribute certificate.
Constructor Summary | |
---|---|
VOMSAttribute(AttributeCertificate ac)
Parses the contents of an attribute certificate. NOTE: Cryptographic signatures, time stamps etc. |
Method Summary | |
---|---|
AttributeCertificate |
getAC()
Direct access to the Attribute Certificate is going to be removed. |
ACCerts |
getCertList()
Gets the certificates that signed the AC, if the ACCerts extension is present. |
FullAttributes |
getFullAttributes()
Gets a copy of the Generic Attributes extension. |
java.util.List |
getFullyQualifiedAttributes()
|
java.lang.String |
getHolder()
Returns an String representation of the AC holder. |
java.lang.String |
getHolderX509()
Returns an OpenSSL-style representation of the AC holder. |
java.lang.String |
getHost()
Returns the hostName of the issuing VOMS server. |
java.lang.String |
getHostPort()
Returns the address of the issuing VOMS server, on the form <host>:<port> |
java.lang.String |
getIssuer()
Returns an OpenSSL-style representation of the AC issuer. |
java.lang.String |
getIssuerX509()
Returns an OpenSSL-style representation of the AC issuer. |
java.util.List |
getListOfFQAN()
|
java.util.Date |
getNotAfter()
Returns the end date of the AC validity. |
java.util.Date |
getNotBefore()
Return the start date of the AC validity. |
int |
getPort()
Returns the port on which the issuing VOMS server is listening |
java.lang.String |
getSerial()
Returns the serial number of the AC. |
byte[] |
getSignature()
Returns the signature of the AC. |
ACTargets |
getTargets()
Gets the targets of this AC. |
java.lang.String |
getVO()
Returns the VO name |
boolean |
isHolder(java.security.cert.X509Certificate cert)
Checks the given X509 certificate to see if it is the holder of the AC. |
boolean |
isIssuer(java.security.cert.X509Certificate cert)
Checks the given X509 certificate to see if it is the issuer of the AC. |
boolean |
isValid()
Checks if the Attribute is valid. |
java.lang.String |
toString()
Gets a (brief) string representation of this attribute. |
boolean |
validAt(java.util.Date date)
Checks if the AC was valid at the provided timestamp. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VOMSAttribute(AttributeCertificate ac)
ac
- the attribute certificate to parse for VOMS attributesMethod Detail |
---|
public byte[] getSignature()
public java.lang.String getSerial()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public java.util.Date getNotAfter() throws java.text.ParseException
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.
java.text.ParseException
public java.util.Date getNotBefore() throws java.text.ParseException
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.
java.text.ParseException
public boolean validAt(java.util.Date date)
date
- if null
, current time is used
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded or the dates have been encoded incorrectly.public java.lang.String getIssuer()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public java.lang.String getIssuerX509()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public java.lang.String getHolder()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public java.lang.String getHolderX509()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public boolean isValid()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public boolean isHolder(java.security.cert.X509Certificate cert)
cert
- the X509 certificate to check.
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public boolean isIssuer(java.security.cert.X509Certificate cert)
cert
- the X509 certificate to check.
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public AttributeCertificate getAC()
public java.util.List getFullyQualifiedAttributes()
vo[/group[/group2...]][/Role=[role]][/Capability=capability]
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public java.util.List getListOfFQAN()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.FQAN
public java.lang.String getHostPort()
<host>:<port>
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public java.lang.String getHost()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public int getPort()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public java.lang.String getVO()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public java.lang.String toString()
toString
in class java.lang.Object
public FullAttributes getFullAttributes()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public ACCerts getCertList()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.public ACTargets getTargets()
java.lang.IllegalArgumentException
- if no Attribute Certificate has been
loaded.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |