Examples of ObjectIdentifier


Examples of sun.security.util.ObjectIdentifier

     */
    public void setSubjectPublicKeyAlgID(String oid) throws IOException {
  if (oid == null) {
      subjectPublicKeyAlgID = null;
  } else {
      subjectPublicKeyAlgID = new ObjectIdentifier(oid);
  }
    }
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

  } else {
      this.keyPurposeSet =
    Collections.unmodifiableSet(new HashSet<String>(keyPurposeSet));
      keyPurposeOIDSet = new HashSet<ObjectIdentifier>();
      for (String s : this.keyPurposeSet) {
    keyPurposeOIDSet.add(new ObjectIdentifier(s));
      }
  }
    }
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

         * passed as an argument.
         */

        byte[] deroid = new byte[mechoidlen];
  System.arraycopy(externalName, 4, deroid, 0, mechoidlen);
        ObjectIdentifier oid1 = getOID(deroid);
        if  ( ! oid1.equals(oid) )
            return false;
        else
            return true;
    }
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

     public static ObjectIdentifier getOID(byte[] derOID)
         throws IOException
     {
         DerInputStream dis = new DerInputStream(derOID);
         ObjectIdentifier oid = dis.getOID();

         /* Note: getOID() method call generates an IOException
          *       if derOID contains any malformed data
          */
         return oid;
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

        byte[] buf = new byte[ token.length - index ];

  System.arraycopy(token, index, buf, 0, token.length - index);

        ObjectIdentifier mechoid = getOID(buf);

        if(_logger.isLoggable(Level.FINE)) {
            _logger.log(Level.FINE,"Comparing mech OID in token with the expected mech OID");
            _logger.log(Level.FINE,"mech OID: " + dumpHex(getDER(mechoid)));
            _logger.log(Level.FINE,"expected mech OID: " + dumpHex(getDER(oid)));
  }

        if ( ! mechoid.equals(oid)) {
            if(_logger.isLoggable(Level.FINE)) {
                _logger.log(Level.FINE,"mech OID in token does not match expected mech OID");
            }
            throw new IOException("Defective token");
        }
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

     */
    public void setSubjectPublicKeyAlgID(String oid) throws IOException {
        if (oid == null) {
            subjectPublicKeyAlgID = null;
        } else {
            subjectPublicKeyAlgID = new ObjectIdentifier(oid);
        }
    }
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

        } else {
            this.keyPurposeSet =
                Collections.unmodifiableSet(new HashSet<String>(keyPurposeSet));
            keyPurposeOIDSet = new HashSet<ObjectIdentifier>();
            for (String s : this.keyPurposeSet) {
                keyPurposeOIDSet.add(new ObjectIdentifier(s));
            }
        }
    }
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

            while (i.hasNext()) {
                Object o = i.next();
                if (!(o instanceof String)) {
                    throw new IOException("non String in certPolicySet");
                }
                polIdVector.add(new CertificatePolicyId(new ObjectIdentifier(
                  (String)o)));
            }
            // If everything went OK, make the changes
            policySet = tempSet;
            policy = new CertificatePolicySet(polIdVector);
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

            boolean critical = ois.readBoolean();
            int length = ois.readInt();
            byte[] extVal = new byte[length];
            ois.readFully(extVal);
            Extension ext = sun.security.x509.Extension.newExtension
                (new ObjectIdentifier(oid), critical, extVal);
            extensions.put(oid, ext);
        }
    }
View Full Code Here

Examples of sun.security.util.ObjectIdentifier

         * passed as an argument.
         */

        byte[] deroid = new byte[mechoidlen];
  System.arraycopy(externalName, 4, deroid, 0, mechoidlen);
        ObjectIdentifier oid1 = getOID(deroid);
        if  ( ! oid1.equals(oid) )
            throw e;

        int pos = 4 + mechoidlen;

  int namelen =   (((int) externalName[pos])   << 24)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.