Examples of canonicalize()


Examples of org.ietf.jgss.GSSName.canonicalize()

                boolean tryKerberos = false;
                try {
                    GSSManager manager = getManager();
                    GSSName serverName = manager.createName("HTTP@" + authServer, GSSName.NT_HOSTBASED_SERVICE);
                    gssContext = manager.createContext(
                            serverName.canonicalize(negotiationOid), negotiationOid, null,
                            GSSContext.DEFAULT_LIFETIME);
                    gssContext.requestMutualAuth(true);
                    gssContext.requestCredDeleg(true);
                } catch (GSSException ex){
                    // BAD MECH means we are likely to be using 1.5, fall back to Kerberos MECH.
View Full Code Here

Examples of org.ietf.jgss.GSSName.canonicalize()

                    log.debug("Using Kerberos MECH " + KERBEROS_OID);
                    negotiationOid  = new Oid(KERBEROS_OID);
                    GSSManager manager = getManager();
                    GSSName serverName = manager.createName("HTTP@" + authServer, GSSName.NT_HOSTBASED_SERVICE);
                    gssContext = manager.createContext(
                            serverName.canonicalize(negotiationOid), negotiationOid, null,
                            GSSContext.DEFAULT_LIFETIME);
                    gssContext.requestMutualAuth(true);
                    gssContext.requestCredDeleg(true);
                }
                if (token == null) {
View Full Code Here

Examples of org.ietf.jgss.GSSName.canonicalize()

        GSSManager gssManager = GSSManager.getInstance();
       
        String spn = getCompleteServicePrincipalName();
        GSSName gssService = gssManager.createName(spn, null);
       
        return gssManager.createContext(gssService.canonicalize(oid),
                   oid, null, GSSContext.DEFAULT_LIFETIME);
    }
   
    protected Subject loginAndGetSubject() throws LoginException {
       
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.