public static SecurityContext createSecurityContext(final TransientSessionTicket transientTicket,
                                                        final HttpServletRequest request) {
        val principal = transientTicket.getProperty(Principal.class.getName(), Principal.class);
        return createSecurityContext(principal, request);
    }
Create security context.

@param transientTicket the transient ticket
@param request         the request
@return the security context
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/SecurityContextUtils.java