public static Boolean isStatelessAuthentication(final UserProfile profile) {
        val validationResult = (Boolean) profile.getAttribute(OAuth20Constants.CAS_OAUTH_STATELESS_PROPERTY);
        val principal = profile.getAttribute(Principal.class.getName());
        return validationResult != null && validationResult && principal != null;
    }
Find stateless ticket validation result.

@param profile the profile
@return the ticket validation result
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java