API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security.cert. X509CertSelector View Source
Author(s)
Steve Hanna
Since
1.4
Version
1.21, 11/17/05
Serial
Hierarchy
 Object
      X509CertSelector
Implements
 CertSelector
Subclasses
Description
public class X509CertSelector
  A CertSelector that selects X509Certificates that match all specified criteria.
See also:    CertSelector X509Certificate
Constructors
public X509CertSelector ()
  Creates an X509CertSelector.
Methods
Hide/Show inherited methods
public void addPathToName (int type, byte[] name) throws IOException
  Adds a name to the pathToNames criterion.
public void addPathToName (int type, String name) throws IOException
  Adds a name to the pathToNames criterion.
public void addSubjectAlternativeName (int type, byte[] name) throws IOException
  Adds a name to the subjectAlternativeNames criterion.
public void addSubjectAlternativeName (int type, String name) throws IOException
  Adds a name to the subjectAlternativeNames criterion.
public Object clone () [Specified in CertSelector]
  Returns a copy of this object.
pack-privatestatic boolean equalNames (Collection object1, Collection object2)
  Compare for equality two objects of the form passed to setSubjectAlternativeNames (or X509CRLSelector.setIssuerNames).
public byte getAuthorityKeyIdentifier ()
  Returns the authorityKeyIdentifier criterion.
public int getBasicConstraints ()
  Returns the basic constraints constraint.
public X509Certificate getCertificate ()
  Returns the certificateEquals criterion.
public Date getCertificateValid ()
  Returns the certificateValid criterion.
public Set<String> getExtendedKeyUsage ()
  Returns the extendedKeyUsage criterion.
public X500Principal getIssuer ()
  Returns the issuer criterion as an X500Principal.
public byte getIssuerAsBytes () throws IOException
  Returns the issuer criterion as a byte array.
public String getIssuerAsString ()
public boolean getKeyUsage ()
  Returns the keyUsage criterion.
public boolean getMatchAllSubjectAltNames ()
  Indicates if the X509Certificate must contain all or at least one of the subjectAlternativeNames specified in the setSubjectAlternativeNames or addSubjectAlternativeName methods.
public byte getNameConstraints ()
  Returns the name constraints criterion.
public Collection<List<Object>> getPathToNames ()
  Returns a copy of the pathToNames criterion.
public Set<String> getPolicy ()
  Returns the policy criterion.
public Date getPrivateKeyValid ()
  Returns the privateKeyValid criterion.
public BigInteger getSerialNumber ()
  Returns the serialNumber criterion.
public X500Principal getSubject ()
  Returns the subject criterion as an X500Principal.
public Collection<List<Object>> getSubjectAlternativeNames ()
  Returns a copy of the subjectAlternativeNames criterion.
public byte getSubjectAsBytes () throws IOException
  Returns the subject criterion as a byte array.
public String getSubjectAsString ()
public byte getSubjectKeyIdentifier ()
  Returns the subjectKeyIdentifier criterion.
public PublicKey getSubjectPublicKey ()
  Returns the subjectPublicKey criterion.
public String getSubjectPublicKeyAlgID ()
  Returns the subjectPublicKeyAlgID criterion.
pack-privatestatic sun.security.x509.GeneralNameInterface makeGeneralNameInterface (int type, Object name) throws IOException
  Make a GeneralNameInterface out of a name type (0-8) and an Object that may be a byte array holding the ASN.1 DER encoded name or a String form of the name.
public boolean match (Certificate cert) [Specified in CertSelector]
  Decides whether a Certificate should be selected.
public void setAuthorityKeyIdentifier (byte[] authorityKeyID)
  Sets the authorityKeyIdentifier criterion.
public void setBasicConstraints (int minMaxPathLen)
  Sets the basic constraints constraint.
public void setCertificate (X509Certificate cert)
  Sets the certificateEquals criterion.
public void setCertificateValid (Date certValid)
  Sets the certificateValid criterion.
public void setExtendedKeyUsage (Set<String> keyPurposeSet) throws IOException
  Sets the extendedKeyUsage criterion.
public void setIssuer (byte[] issuerDN) throws IOException
  Sets the issuer criterion.
public void setIssuer (String issuerDN) throws IOException
public void setIssuer (X500Principal issuer)
  Sets the issuer criterion.
public void setKeyUsage (boolean[] keyUsage)
  Sets the keyUsage criterion.
public void setMatchAllSubjectAltNames (boolean matchAllNames)
  Enables/disables matching all of the subjectAlternativeNames specified in the setSubjectAlternativeNames or addSubjectAlternativeName methods.
public void setNameConstraints (byte[] bytes) throws IOException
  Sets the name constraints criterion.
public void setPathToNames (Collection<List<Object>> names) throws IOException
  Sets the pathToNames criterion.
pack-private void setPathToNamesInternal (Set<sun.security.x509.GeneralNameInterface> names)
public void setPolicy (Set<String> certPolicySet) throws IOException
  Sets the policy constraint.
public void setPrivateKeyValid (Date privateKeyValid)
  Sets the privateKeyValid criterion.
public void setSerialNumber (BigInteger serial)
  Sets the serialNumber criterion.
public void setSubject (byte[] subjectDN) throws IOException
  Sets the subject criterion.
public void setSubject (String subjectDN) throws IOException
public void setSubject (X500Principal subject)
  Sets the subject criterion.
public void setSubjectAlternativeNames (Collection<List<Object>> names) throws IOException
  Sets the subjectAlternativeNames criterion.
public void setSubjectKeyIdentifier (byte[] subjectKeyID)
  Sets the subjectKeyIdentifier criterion.
public void setSubjectPublicKey (byte[] key) throws IOException
  Sets the subjectPublicKey criterion.
public void setSubjectPublicKey (PublicKey key)
  Sets the subjectPublicKey criterion.
public void setSubjectPublicKeyAlgID (String oid) throws IOException
  Sets the subjectPublicKeyAlgID criterion.
public String toString ()
  Return a printable representation of the CertSelector.
Fields
Hide/Show inherited fields
pack-privatefinalstatic int NAME_ANY = "0"
pack-privatefinalstatic int NAME_DIRECTORY = "4"
pack-privatefinalstatic int NAME_DNS = "2"
pack-privatefinalstatic int NAME_EDI = "5"
pack-privatefinalstatic int NAME_IP = "7"
pack-privatefinalstatic int NAME_OID = "8"
pack-privatefinalstatic int NAME_RFC822 = "1"
pack-privatefinalstatic int NAME_URI = "6"
pack-privatefinalstatic int NAME_X400 = "3"
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar