undertow/src/main/java/org/wildfly/extension/undertow/security/SecurityActions.java
static SecurityContext getSecurityContext() {
        if (WildFlySecurityManager.isChecking()) {
            return WildFlySecurityManager.doUnchecked(new PrivilegedAction<SecurityContext>() {
                public SecurityContext run() {
                    return SecurityContextAssociation.getSecurityContext();
                }
            });
        } else {
            return SecurityContextAssociation.getSecurityContext();
        }
    }
static SecurityContext getSecurityContext() {
        if (WildFlySecurityManager.isChecking()) {
            return WildFlySecurityManager.doUnchecked(new PrivilegedAction<SecurityContext>() {
                public SecurityContext run() {
                    return SecurityContextAssociation.getSecurityContext();
                }
            });
        } else {
            return SecurityContextAssociation.getSecurityContext();
        }
    }
static SecurityContext getSecurityContext ( ) { if ( WildFlySecurityManager . isChecking ( ) ) { return WildFlySecurityManager . doUnchecked ( new PrivilegedAction < SecurityContext > ( ) { public SecurityContext run ( ) { return SecurityContextAssociation . getSecurityContext ( ) ; } } ) ; } else { return SecurityContextAssociation . getSecurityContext ( ) ; } }
Get the current {@code SecurityContext}

@return an instance of {@code SecurityContext}
Get the current { @code SecurityContext }