Build 1.0_r1(from source)

java.security.cert
Class X509CertSelector

java.lang.Object
  extended by java.security.cert.X509CertSelector
All Implemented Interfaces:
Cloneable, CertSelector

public class X509CertSelector
extends Object
implements CertSelector


Constructor Summary
X509CertSelector()
           
 
Method Summary
 void addPathToName(int type, byte[] name)
           
 void addPathToName(int type, String name)
           
 void addSubjectAlternativeName(int tag, byte[] name)
           
 void addSubjectAlternativeName(int tag, String name)
           
 Object clone()
          Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.
 byte[] getAuthorityKeyIdentifier()
           
 int getBasicConstraints()
           
 X509Certificate getCertificate()
           
 Date getCertificateValid()
           
 Set<String> getExtendedKeyUsage()
           
 X500Principal getIssuer()
           
 byte[] getIssuerAsBytes()
           
 String getIssuerAsString()
           
 boolean[] getKeyUsage()
           
 boolean getMatchAllSubjectAltNames()
           
 byte[] getNameConstraints()
           
 Collection<List<?>> getPathToNames()
           
 Set<String> getPolicy()
           
 Date getPrivateKeyValid()
           
 BigInteger getSerialNumber()
           
 X500Principal getSubject()
           
 Collection<List<?>> getSubjectAlternativeNames()
           
 byte[] getSubjectAsBytes()
           
 String getSubjectAsString()
           
 byte[] getSubjectKeyIdentifier()
           
 PublicKey getSubjectPublicKey()
           
 String getSubjectPublicKeyAlgID()
           
 boolean match(Certificate certificate)
           
 void setAuthorityKeyIdentifier(byte[] authorityKeyIdentifier)
           
 void setBasicConstraints(int pathLen)
           
 void setCertificate(X509Certificate certificate)
           
 void setCertificateValid(Date certificateValid)
           
 void setExtendedKeyUsage(Set<String> keyUsage)
           
 void setIssuer(byte[] issuerDN)
           
 void setIssuer(String issuerName)
           
 void setIssuer(X500Principal issuer)
           
 void setKeyUsage(boolean[] keyUsage)
           
 void setMatchAllSubjectAltNames(boolean matchAllNames)
           
 void setNameConstraints(byte[] bytes)
           
 void setPathToNames(Collection<List<?>> names)
           
 void setPolicy(Set<String> policies)
           
 void setPrivateKeyValid(Date privateKeyValid)
           
 void setSerialNumber(BigInteger serialNumber)
           
 void setSubject(byte[] subjectDN)
           
 void setSubject(String subjectDN)
           
 void setSubject(X500Principal subject)
           
 void setSubjectAlternativeNames(Collection<List<?>> names)
           
 void setSubjectKeyIdentifier(byte[] subjectKeyIdentifier)
           
 void setSubjectPublicKey(byte[] key)
           
 void setSubjectPublicKey(PublicKey key)
           
 void setSubjectPublicKeyAlgID(String oid)
           
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

X509CertSelector

public X509CertSelector()
Method Detail

setCertificate

public void setCertificate(X509Certificate certificate)

getCertificate

public X509Certificate getCertificate()

setSerialNumber

public void setSerialNumber(BigInteger serialNumber)

getSerialNumber

public BigInteger getSerialNumber()

setIssuer

public void setIssuer(X500Principal issuer)

getIssuer

public X500Principal getIssuer()

setIssuer

public void setIssuer(String issuerName)
               throws IOException
Throws:
IOException

getIssuerAsString

public String getIssuerAsString()

setIssuer

public void setIssuer(byte[] issuerDN)
               throws IOException
Throws:
IOException

getIssuerAsBytes

public byte[] getIssuerAsBytes()
                        throws IOException
Throws:
IOException

setSubject

public void setSubject(X500Principal subject)

getSubject

public X500Principal getSubject()

setSubject

public void setSubject(String subjectDN)
                throws IOException
Throws:
IOException

getSubjectAsString

public String getSubjectAsString()

setSubject

public void setSubject(byte[] subjectDN)
                throws IOException
Throws:
IOException

getSubjectAsBytes

public byte[] getSubjectAsBytes()
                         throws IOException
Throws:
IOException

setSubjectKeyIdentifier

public void setSubjectKeyIdentifier(byte[] subjectKeyIdentifier)

getSubjectKeyIdentifier

public byte[] getSubjectKeyIdentifier()

setAuthorityKeyIdentifier

public void setAuthorityKeyIdentifier(byte[] authorityKeyIdentifier)

getAuthorityKeyIdentifier

public byte[] getAuthorityKeyIdentifier()

setCertificateValid

public void setCertificateValid(Date certificateValid)

getCertificateValid

public Date getCertificateValid()

setPrivateKeyValid

public void setPrivateKeyValid(Date privateKeyValid)

getPrivateKeyValid

public Date getPrivateKeyValid()

setSubjectPublicKeyAlgID

public void setSubjectPublicKeyAlgID(String oid)
                              throws IOException
Throws:
IOException

getSubjectPublicKeyAlgID

public String getSubjectPublicKeyAlgID()

setSubjectPublicKey

public void setSubjectPublicKey(PublicKey key)

setSubjectPublicKey

public void setSubjectPublicKey(byte[] key)
                         throws IOException
Throws:
IOException

getSubjectPublicKey

public PublicKey getSubjectPublicKey()

setKeyUsage

public void setKeyUsage(boolean[] keyUsage)

getKeyUsage

public boolean[] getKeyUsage()

setExtendedKeyUsage

public void setExtendedKeyUsage(Set<String> keyUsage)
                         throws IOException
Throws:
IOException

getExtendedKeyUsage

public Set<String> getExtendedKeyUsage()

setMatchAllSubjectAltNames

public void setMatchAllSubjectAltNames(boolean matchAllNames)

getMatchAllSubjectAltNames

public boolean getMatchAllSubjectAltNames()

setSubjectAlternativeNames

public void setSubjectAlternativeNames(Collection<List<?>> names)
                                throws IOException
Throws:
IOException

addSubjectAlternativeName

public void addSubjectAlternativeName(int tag,
                                      String name)
                               throws IOException
Throws:
IOException

addSubjectAlternativeName

public void addSubjectAlternativeName(int tag,
                                      byte[] name)
                               throws IOException
Throws:
IOException

getSubjectAlternativeNames

public Collection<List<?>> getSubjectAlternativeNames()

setNameConstraints

public void setNameConstraints(byte[] bytes)
                        throws IOException
Throws:
IOException

getNameConstraints

public byte[] getNameConstraints()

setBasicConstraints

public void setBasicConstraints(int pathLen)

getBasicConstraints

public int getBasicConstraints()

setPolicy

public void setPolicy(Set<String> policies)
               throws IOException
Throws:
IOException

getPolicy

public Set<String> getPolicy()

setPathToNames

public void setPathToNames(Collection<List<?>> names)
                    throws IOException
Throws:
IOException

addPathToName

public void addPathToName(int type,
                          String name)
                   throws IOException
Throws:
IOException

addPathToName

public void addPathToName(int type,
                          byte[] name)
                   throws IOException
Throws:
IOException

getPathToNames

public Collection<List<?>> getPathToNames()

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

match

public boolean match(Certificate certificate)
Specified by:
match in interface CertSelector

clone

public Object clone()
Description copied from class: Object
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.

Classes which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.

Specified by:
clone in interface CertSelector
Overrides:
clone in class Object
Returns:
Object a shallow copy of this object.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature