Android
java.security.cert
public class

java.security.cert.X509CertSelector

java.lang.Object
java.security.cert.X509CertSelector CertSelector

Summary

Public Constructors

            X509CertSelector()

Public Methods

          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(X500Principal subject)
          void  setSubject(String subjectDN)
          void  setSubject(byte[] subjectDN)
          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
Methods inherited from interface java.security.cert.CertSelector

Details

Public Constructors

public X509CertSelector()

Public Methods

public void addPathToName(int type, byte[] name)

Throws

IOException

public void addPathToName(int type, String name)

Throws

IOException

public void addSubjectAlternativeName(int tag, byte[] name)

Throws

IOException

public void addSubjectAlternativeName(int tag, String name)

Throws

IOException

public 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.

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

Returns

  • Object a shallow copy of this object.

public byte[] getAuthorityKeyIdentifier()

public int getBasicConstraints()

public X509Certificate getCertificate()

public Date getCertificateValid()

public Set<String> getExtendedKeyUsage()

public X500Principal getIssuer()

public byte[] getIssuerAsBytes()

Throws

IOException

public String getIssuerAsString()

public boolean[] getKeyUsage()

public boolean getMatchAllSubjectAltNames()

public byte[] getNameConstraints()

public Collection<List<?>> getPathToNames()

public Set<String> getPolicy()

public Date getPrivateKeyValid()

public BigInteger getSerialNumber()

public X500Principal getSubject()

public Collection<List<?>> getSubjectAlternativeNames()

public byte[] getSubjectAsBytes()

Throws

IOException

public String getSubjectAsString()

public byte[] getSubjectKeyIdentifier()

public PublicKey getSubjectPublicKey()

public String getSubjectPublicKeyAlgID()

public boolean match(Certificate certificate)

public void setAuthorityKeyIdentifier(byte[] authorityKeyIdentifier)

public void setBasicConstraints(int pathLen)

public void setCertificate(X509Certificate certificate)

public void setCertificateValid(Date certificateValid)

public void setExtendedKeyUsage(Set<String> keyUsage)

Throws

IOException

public void setIssuer(byte[] issuerDN)

Throws

IOException

public void setIssuer(String issuerName)

Throws

IOException

public void setIssuer(X500Principal issuer)

public void setKeyUsage(boolean[] keyUsage)

public void setMatchAllSubjectAltNames(boolean matchAllNames)

public void setNameConstraints(byte[] bytes)

Throws

IOException

public void setPathToNames(Collection<List<?>> names)

Throws

IOException

public void setPolicy(Set<String> policies)

Throws

IOException

public void setPrivateKeyValid(Date privateKeyValid)

public void setSerialNumber(BigInteger serialNumber)

public void setSubject(X500Principal subject)

public void setSubject(String subjectDN)

Throws

IOException

public void setSubject(byte[] subjectDN)

Throws

IOException

public void setSubjectAlternativeNames(Collection<List<?>> names)

Throws

IOException

public void setSubjectKeyIdentifier(byte[] subjectKeyIdentifier)

public void setSubjectPublicKey(byte[] key)

Throws

IOException

public void setSubjectPublicKey(PublicKey key)

public void setSubjectPublicKeyAlgID(String oid)

Throws

IOException

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48