public static void setCurrentAuthentication ( Authentication authentication ) { RequestContext context = RequestContext . getCurrent ( ) ; if ( context != null ) { setAuthentication ( context . getRequest ( ) , authentication ) ; } }
Sets the authentication attribute in the current request .