public class VOMSAttribute extends Object
| Constructor and Description |
|---|
VOMSAttribute(AttributeCertificate ac)
Parses the contents of an attribute certificate.
NOTE: Cryptographic signatures, time stamps etc. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
List |
getFullyQualifiedAttributes() |
String |
getHolder()
Returns an String representation of the AC holder.
|
String |
getHolderX509()
Returns an OpenSSL-style representation of the AC holder.
|
String |
getHost()
Returns the hostName of the issuing VOMS server.
|
String |
getHostPort()
Returns the address of the issuing VOMS server, on the form
<host>:<port> |
String |
getIssuer()
Returns an OpenSSL-style representation of the AC issuer.
|
String |
getIssuerX509()
Returns an OpenSSL-style representation of the AC issuer.
|
List |
getListOfFQAN() |
Date |
getNotAfter()
Returns the end date of the AC validity.
|
Date |
getNotBefore()
Return the start date of the AC validity.
|
int |
getPort()
Returns the port on which the issuing VOMS server is listening
|
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.
|
String |
getVO()
Returns the VO name
|
boolean |
isHolder(X509Certificate cert)
Checks the given X509 certificate to see if it is the holder of the AC.
|
boolean |
isIssuer(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.
|
String |
toString()
Gets a (brief) string representation of this attribute.
|
boolean |
validAt(Date date)
Checks if the AC was valid at the provided timestamp.
|
public VOMSAttribute(AttributeCertificate ac)
ac - the attribute certificate to parse for VOMS attributespublic byte[] getSignature()
public String getSerial()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public Date getNotAfter() throws ParseException
IllegalArgumentException - if no Attribute Certificate has been
loaded.ParseExceptionpublic Date getNotBefore() throws ParseException
IllegalArgumentException - if no Attribute Certificate has been
loaded.ParseExceptionpublic boolean validAt(Date date)
date - if null, current time is usedIllegalArgumentException - if no Attribute Certificate has been
loaded or the dates have been encoded incorrectly.public String getIssuer()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public String getIssuerX509()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public String getHolder()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public String getHolderX509()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public boolean isValid()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public boolean isHolder(X509Certificate cert)
cert - the X509 certificate to check.IllegalArgumentException - if no Attribute Certificate has been
loaded.public boolean isIssuer(X509Certificate cert)
cert - the X509 certificate to check.IllegalArgumentException - if no Attribute Certificate has been
loaded.public AttributeCertificate getAC()
public List getFullyQualifiedAttributes()
vo[/group[/group2...]][/Role=[role]][/Capability=capability]IllegalArgumentException - if no Attribute Certificate has been
loaded.public List getListOfFQAN()
IllegalArgumentException - if no Attribute Certificate has been
loaded.FQANpublic String getHostPort()
<host>:<port>IllegalArgumentException - if no Attribute Certificate has been
loaded.public String getHost()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public int getPort()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public String getVO()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public String toString()
public FullAttributes getFullAttributes()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public ACCerts getCertList()
IllegalArgumentException - if no Attribute Certificate has been
loaded.public ACTargets getTargets()
IllegalArgumentException - if no Attribute Certificate has been
loaded.Copyright © 2014. All rights reserved.