Package sun.security.util

Examples of sun.security.util.ObjectIdentifier


     *     formatted
     */
    public Oid(String strOid) throws GSSException {

        try {
      oid = new ObjectIdentifier(strOid);
      derEncoding = null;
        } catch (Exception e) {
            throw new GSSException(GSSException.FAILURE,
                          "Improperly formatted Object Identifier String - "
                          + strOid)
View Full Code Here


     *     formatted
     */
    public Oid(String strOid) throws GSSException {

        try {
            oid = new ObjectIdentifier(strOid);
            derEncoding = null;
        } catch (Exception e) {
            throw new GSSException(GSSException.FAILURE,
                          "Improperly formatted Object Identifier String - "
                          + strOid);
View Full Code Here

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

        } 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

            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

            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

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

  } 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

         * 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

     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

TOP

Related Classes of sun.security.util.ObjectIdentifier

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.