Package sun.security.x509

Examples of sun.security.x509.AlgorithmId


    throws IOException {
        HashSet<X500Principal> x500Principals = new HashSet<X500Principal>();
  for (Iterator t = names.iterator(); t.hasNext(); ) {
      Object nameObject = t.next();
      if (nameObject instanceof String) {
    x500Principals.add(new X500Name((String)nameObject).asX500Principal());
      } else {
    try {
        x500Principals.add(new X500Principal((byte[])nameObject));
    } catch (IllegalArgumentException e) {
        throw (IOException)new IOException("Invalid name").initCause(e);
View Full Code Here


    (sun.security.util.ResourcesMgr.getString
    ("provided null keyword map"));
  }

  try {
      thisX500Name = new X500Name(name, keywordMap);
  } catch (Exception e) {
      IllegalArgumentException iae = new IllegalArgumentException
      ("improperly specified input name: " + name);
      iae.initCause(e);
      throw iae;
View Full Code Here

     * @throws IllegalArgumentException if an encoding error occurs
     *    (incorrect form for DN)
     */
    public X500Principal(byte[] name) {
  try {
      thisX500Name = new X500Name(name);
  } catch (Exception e) {
      IllegalArgumentException iae = new IllegalArgumentException
      ("improperly specified input name");
      iae.initCause(e);
      throw iae;
View Full Code Here

  try {
      if (is.markSupported())
    is.mark(is.available() + 1);
      DerValue der = new DerValue(is);
      thisX500Name = new X500Name(der.data);
  } catch (Exception e) {
      if (is.markSupported()) {
    try {
        is.reset();
    } catch (IOException ioe) {
View Full Code Here

  throws java.io.IOException,
         java.io.NotActiveException,
         ClassNotFoundException {

  // re-create thisX500Name
  thisX500Name = new X500Name((byte[])s.readObject());
    }
View Full Code Here

    public X500Principal(String name) {
  if (name == null)
      throw new NullPointerException(rb.getString("provided null name"));

  try {
      thisX500Name = new X500Name(name);
  } catch (Exception e) {
      throw new IllegalArgumentException(e.toString());
  }

  this.name = name;
View Full Code Here

            return true;

  if (o instanceof X500Principal) {
      X500Principal that = (X500Principal)o;
      try {
    X500Name thatX500Name = new X500Name(that.getName());
    return thisX500Name.equals(thatX500Name);
      } catch (Exception e) {
    // any parsing exceptions, return false
    return false;
      }
View Full Code Here

          ClassNotFoundException {

  s.defaultReadObject();

  // re-create thisX500Name
  thisX500Name = new X500Name(name);
    }
View Full Code Here

      for (int j=0; j < pool.size(); j++) {
    X509Certificate c = (X509Certificate) pool.get(j);
    switch (matchType) {
    case MATCH_SUBJECT:
        try {
            if (c.getSubjectDN().equals(new X500Name((String)value))) {
          matchResult.add(c);
            }
        } catch (IOException ioe) { }
        break;
    case MATCH_ISSUER:
        try {
            if (c.getIssuerDN().equals(new X500Name((String)value))) {
          matchResult.add(c);
            }
        } catch (IOException ioe) { }
        break;
    case MATCH_SERIAL:
View Full Code Here

      for (int j=0; j < pool.size(); j++) {
    X509Certificate c = (X509Certificate) pool.get(j);
    switch (matchType) {
    case MATCH_SUBJECT:
        try {
            if (c.getSubjectDN().equals(new X500Name((String)value))) {
          matchResult.add(c);
            }
        } catch (IOException ioe) { }
        break;
    case MATCH_ISSUER:
        try {
            if (c.getIssuerDN().equals(new X500Name((String)value))) {
          matchResult.add(c);
            }
        } catch (IOException ioe) { }
        break;
    case MATCH_SERIAL:
View Full Code Here

TOP

Related Classes of sun.security.x509.AlgorithmId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.