public class AttributeCertificate
extends java.lang.Object
implements org.bouncycastle.asn1.ASN1Encodable
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
AttributeCertificate(org.bouncycastle.asn1.ASN1Sequence seq) |
| Modifier and Type | Method and Description |
|---|---|
AttributeCertificateInfo |
getAcinfo() |
org.bouncycastle.asn1.ASN1Sequence |
getAttributes() |
java.util.List |
getAttributes(java.lang.String oid)
Returns a list of the attributes matching the provided OID.
|
ACCerts |
getCertList() |
org.bouncycastle.asn1.x509.X509Extensions |
getExtensions() |
FullAttributes |
getFullAttributes() |
java.util.List |
getFullyQualifiedAttributes() |
Holder |
getHolder() |
java.lang.String |
getHolderX509() |
java.lang.String |
getHost() |
java.lang.String |
getHostPort() |
static AttributeCertificate |
getInstance(java.io.InputStream in)
Create an Attribute Certificate from a input stream containing
DER-encoded data
|
javax.security.auth.x500.X500Principal |
getIssuer() |
org.bouncycastle.jce.X509Principal |
getIssuerX509() |
java.util.List |
getListOfFQAN() |
java.util.Date |
getNotAfter() |
java.util.Date |
getNotBefore() |
int |
getPort() |
org.bouncycastle.asn1.DERInteger |
getSerialNumber() |
byte[] |
getSignature() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getSignatureAlgorithm() |
org.bouncycastle.asn1.DERBitString |
getSignatureValue() |
ACTargets |
getTargets() |
java.lang.String |
getVO() |
boolean |
isValid()
Synonym for
validAt(null) |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.
|
boolean |
validAt(java.util.Date date)
Checks if the AC was valid at the provided timestamp.
|
boolean |
verify(java.security.PublicKey key)
Verifies the signature of the AC using the provided signature key
|
boolean |
verifyCert(java.security.cert.X509Certificate cert) |
public AttributeCertificate(org.bouncycastle.asn1.ASN1Sequence seq)
throws java.io.IOException
java.io.IOExceptionpublic static AttributeCertificate getInstance(java.io.InputStream in) throws java.io.IOException
in - java.io.IOExceptionpublic AttributeCertificateInfo getAcinfo()
public org.bouncycastle.asn1.ASN1Sequence getAttributes()
public org.bouncycastle.asn1.DERInteger getSerialNumber()
public java.lang.String getVO()
public java.lang.String getHostPort()
public java.lang.String getHost()
public int getPort()
public FullAttributes getFullAttributes()
public ACCerts getCertList()
public ACTargets getTargets()
public java.util.List getFullyQualifiedAttributes()
vo[/group[/group2...]][/Role=[role]][/Capability=capability]public java.util.List getListOfFQAN()
FQANpublic java.util.List getAttributes(java.lang.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 javax.security.auth.x500.X500Principal getIssuer()
public java.lang.String getHolderX509()
public Holder getHolder()
public java.util.Date getNotAfter()
throws java.text.ParseException
java.text.ParseExceptionpublic java.util.Date getNotBefore()
throws java.text.ParseException
java.text.ParseExceptionpublic org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm()
public org.bouncycastle.asn1.DERBitString getSignatureValue()
public byte[] getSignature()
public boolean validAt(java.util.Date date)
date - if null, current time is usedpublic boolean isValid()
validAt(null)public boolean verify(java.security.PublicKey key)
key - The (RSA) public key to verify the signature withtrue if success, false otherwisepublic boolean verifyCert(java.security.cert.X509Certificate cert)
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
AttributeCertificate ::= SEQUENCE {
acinfo AttributeCertificateInfo,
signatureAlgorithm AlgorithmIdentifier,
signatureValue BIT STRING
}
toASN1Primitive in interface org.bouncycastle.asn1.ASN1EncodableCopyright © 2013. All Rights Reserved.