Example #1
0
  /**
   * Create an ASN.1, DER encoded representation for the GSSUP OID mechanism.
   *
   * @return the DER encoded representation of the GSSUP OID.
   */
  public static byte[] createGSSUPMechOID() {
    // kudos to org.ietf.jgss.Oid for the Oid utility need to strip the "oid:" part of the
    // GSSUPMechOID first.

    byte[] retval = {};
    try {
      Oid oid = new Oid(GSSUPMechOID.value.substring(4));
      retval = oid.getDER();
    } catch (GSSException e) {
      JacORBLogger.ROOT_LOGGER.caughtExceptionEncodingGSSUPMechOID(e);
    }
    return retval;
  }
Example #2
0
  /**
   * Create an ASN.1, DER encoded representation for the GSSUP OID mechanism.
   *
   * @return the DER encoded representation of the GSSUP OID.
   */
  public static byte[] createGSSUPMechOID() {
    // kudos to org.ietf.jgss.Oid for the Oid utility need to strip the "oid:" part of the
    // GSSUPMechOID first.

    byte[] retval = {};
    try {
      Oid oid = new Oid(GSSUPMechOID.value.substring(4));
      retval = oid.getDER();
    } catch (GSSException e) {
      log.warn("Caught exception while encoding GSSUPMechOID", e);
    }
    return retval;
  }