Examples of JGDIPrincipal


Examples of com.sun.grid.jgdi.security.JGDIPrincipal

    private static long getSessionId() throws JGDIException {
        Subject sub = Subject.getSubject(AccessController.getContext());
        if (sub != null) {
            Set<JGDIPrincipal> ps = sub.getPrincipals(JGDIPrincipal.class);
            if (!ps.isEmpty()) {
                JGDIPrincipal p = ps.iterator().next();
                return p.getSessionId();
            }
        }
        throw new JGDIException("no active session found in subject " + sub);
    }
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.