org.bouncycastle.x509
Class AttributeCertificateIssuer

java.lang.Object
  extended by org.bouncycastle.x509.AttributeCertificateIssuer
All Implemented Interfaces:
java.lang.Cloneable, java.security.cert.CertSelector, Selector

public class AttributeCertificateIssuer
extends java.lang.Object
implements java.security.cert.CertSelector, Selector

Carrying class for an attribute certificate issuer.


Field Summary
(package private)  ASN1Encodable form
           
 
Constructor Summary
AttributeCertificateIssuer(AttCertIssuer issuer)
          Set the issuer directly with the ASN.1 structure.
AttributeCertificateIssuer(javax.security.auth.x500.X500Principal principal)
           
AttributeCertificateIssuer(X509Principal principal)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
private  java.lang.Object[] getNames()
           
 java.security.Principal[] getPrincipals()
          Return any principal objects inside the attribute certificate issuer object.
 int hashCode()
           
 boolean match(java.security.cert.Certificate cert)
           
 boolean match(java.lang.Object obj)
           
private  boolean matchesDN(javax.security.auth.x500.X500Principal subject, GeneralNames targets)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

form

final ASN1Encodable form
Constructor Detail

AttributeCertificateIssuer

AttributeCertificateIssuer(AttCertIssuer issuer)
Set the issuer directly with the ASN.1 structure.

Parameters:
issuer - The issuer

AttributeCertificateIssuer

public AttributeCertificateIssuer(javax.security.auth.x500.X500Principal principal)
                           throws java.io.IOException
Throws:
java.io.IOException

AttributeCertificateIssuer

public AttributeCertificateIssuer(X509Principal principal)
Method Detail

getNames

private java.lang.Object[] getNames()

getPrincipals

public java.security.Principal[] getPrincipals()
Return any principal objects inside the attribute certificate issuer object.

Returns:
an array of Principal objects (usually X500Principal)

matchesDN

private boolean matchesDN(javax.security.auth.x500.X500Principal subject,
                          GeneralNames targets)

clone

public java.lang.Object clone()
Specified by:
clone in interface java.security.cert.CertSelector
Specified by:
clone in interface Selector
Overrides:
clone in class java.lang.Object

match

public boolean match(java.security.cert.Certificate cert)
Specified by:
match in interface java.security.cert.CertSelector

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

match

public boolean match(java.lang.Object obj)
Specified by:
match in interface Selector