public NormalizedUserProfile getUserProfileInfo ( AccessToken accessTokenParam ) { if ( accessTokenParam == null || ( accessTokenParam . getAccessToken ( ) == null || accessTokenParam . getAccessToken ( ) . trim ( ) . isEmpty ( ) ) ) { throw new FluidClientException ( "Code must be provided." , FluidClientException . ErrorCode . FIELD_VALIDATE ) ; } try { String accessToken = accessTokenParam . getAccessToken ( ) ; List < HeaderNameValue > headerListing = new ArrayList < HeaderNameValue > ( ) ; headerListing . add ( new HeaderNameValue ( NormalizedUserProfile . HeaderMapping . AUTHORIZATION , "Bearer " + accessToken ) ) ; return new NormalizedUserProfile ( this . getJson ( true , WS . Path . Auth0 . Version1 . userInfo ( ) , headerListing ) ) ; } // catch ( UnsupportedEncodingException e ) { throw new FluidClientException ( "Unable to Encode (Not Supported). " + e . getMessage ( ) , FluidClientException . ErrorCode . ILLEGAL_STATE_ERROR ) ; } }
Gets Auth0 Normalized User Profile info .