|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.voms.ac.AttributeCertificate
public class AttributeCertificate
A shadow implementation of the non-working BouncyCastle implementation of X.509 Attribute Certificates
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
---|---|
AttributeCertificate(org.bouncycastle.asn1.ASN1Sequence seq)
|
Method Summary | |
---|---|
AttributeCertificateInfo |
getAcinfo()
|
org.bouncycastle.asn1.ASN1Sequence |
getAttributes()
|
List |
getAttributes(String oid)
Returns a list of the attributes matching the provided OID. |
ACCerts |
getCertList()
|
org.bouncycastle.asn1.DERObject |
getDERObject()
Produce an object suitable for an ASN1OutputStream. |
org.bouncycastle.asn1.x509.X509Extensions |
getExtensions()
|
FullAttributes |
getFullAttributes()
|
List |
getFullyQualifiedAttributes()
|
Holder |
getHolder()
|
String |
getHolderX509()
|
String |
getHost()
|
String |
getHostPort()
|
static AttributeCertificate |
getInstance(InputStream in)
Create an Attribute Certificate from a input stream containing DER-encoded data |
X500Principal |
getIssuer()
|
org.bouncycastle.jce.X509Principal |
getIssuerX509()
|
List |
getListOfFQAN()
|
Date |
getNotAfter()
|
Date |
getNotBefore()
|
int |
getPort()
|
org.bouncycastle.asn1.DERInteger |
getSerialNumber()
|
byte[] |
getSignature()
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getSignatureAlgorithm()
|
org.bouncycastle.asn1.DERBitString |
getSignatureValue()
|
ACTargets |
getTargets()
|
String |
getVO()
|
boolean |
isValid()
Synonym for validAt(null) |
boolean |
validAt(Date date)
Checks if the AC was valid at the provided timestamp. |
boolean |
verify(PublicKey key)
Verifies the signature of the AC using the provided signature key |
boolean |
verifyCert(X509Certificate cert)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
Constructor Detail |
---|
public AttributeCertificate(org.bouncycastle.asn1.ASN1Sequence seq) throws IOException
IOException
Method Detail |
---|
public static AttributeCertificate getInstance(InputStream in) throws IOException
in
-
IOException
public AttributeCertificateInfo getAcinfo()
public org.bouncycastle.asn1.ASN1Sequence getAttributes()
AttributeCertificateInfo.getAttributes()
public org.bouncycastle.asn1.DERInteger getSerialNumber()
public String getVO()
public String getHostPort()
public String getHost()
public int getPort()
public FullAttributes getFullAttributes()
public ACCerts getCertList()
public ACTargets getTargets()
public List getFullyQualifiedAttributes()
vo[/group[/group2...]][/Role=[role]][/Capability=capability]
public List getListOfFQAN()
FQAN
public List getAttributes(String oid)
oid
- Object Identifier, on the form "1.2.3.4"
public org.bouncycastle.asn1.x509.X509Extensions getExtensions()
public org.bouncycastle.jce.X509Principal getIssuerX509()
public X500Principal getIssuer()
public String getHolderX509()
public Holder getHolder()
public Date getNotAfter() throws ParseException
ParseException
public Date getNotBefore() throws ParseException
ParseException
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm()
public org.bouncycastle.asn1.DERBitString getSignatureValue()
public byte[] getSignature()
public boolean validAt(Date date)
date
- if null
, current time is used
public boolean isValid()
validAt(null)
public boolean verify(PublicKey key)
key
- The (RSA) public key to verify the signature with
true
if success, false
otherwisepublic boolean verifyCert(X509Certificate cert)
public org.bouncycastle.asn1.DERObject getDERObject()
AttributeCertificate ::= SEQUENCE { acinfo AttributeCertificateInfo, signatureAlgorithm AlgorithmIdentifier, signatureValue BIT STRING }
getDERObject
in interface org.bouncycastle.asn1.DEREncodable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |