Examples of gss_OID_desc


Examples of edu.mit.jgss.swig.gss_OID_desc

    public GSSName canonicalize(Oid mech) throws GSSException {
        long maj_status = 0;
        long[] min_status = {0};
        int ret = 0;
        gss_OID_desc tmpOid;

        GSSNameImpl canonicalName = new GSSNameImpl();
        gss_name_t_desc tmpName = new gss_name_t_desc();
     
        if (mech == null) {
       
            tmpOid = new gss_OID_desc("1.2.840.113554.1.2.2");

        } else {

            /* note that underlying native MIT gssapi library only supports
               gss_mech_krb5_old and gss_mech_krb5 mechanism types, so
               we're explicity requiring gss_mech_krb5 to be used */
            tmpOid = mech.getNativeOid();

            if (!tmpOid.toDotString().equals("1.2.840.113554.1.2.2")) {
                throw new GSSExceptionImpl((int)maj_status, (int)min_status[0]);
            }
        }

        maj_status = gsswrapper.gss_canonicalize_name(min_status,
View Full Code Here

Examples of edu.mit.jgss.swig.gss_OID_desc

        long maj_status = 0;
        long[] min_status = {0};
        String outString;

        gss_buffer_desc output_name_buffer = new gss_buffer_desc();
        gss_OID_desc output_name_type = new gss_OID_desc();

        maj_status = gsswrapper.gss_display_name(min_status,
                this.internGSSName,
                output_name_buffer,
                output_name_type);
View Full Code Here

Examples of edu.mit.jgss.swig.gss_OID_desc

    public Oid getStringNameType() throws GSSException {
        long maj_status = 0;
        long[] min_status = {0};

        gss_buffer_desc output_name_buffer = new gss_buffer_desc();
        gss_OID_desc output_name_type = new gss_OID_desc();

        maj_status = gsswrapper.gss_display_name(min_status,
                this.getInternGSSName(),
                output_name_buffer,
                output_name_type);

        if (maj_status != gsswrapper.GSS_S_COMPLETE) {
            return null;
        }

        Oid newOid = new Oid(output_name_type.toDotString());

        return newOid;
    }
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.