java.lang.Object
net.shibboleth.idp.plugin.oidc.op.decoding.impl.RequestUtil

public final class RequestUtil extends Object
Request logging helper class.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Private constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getAccessTokenLog(com.nimbusds.oauth2.sdk.token.AccessToken accessToken)
    Helper method for getting protocol log message for access token object.
    static String
    getAuthorizationGrantLog(com.nimbusds.oauth2.sdk.AuthorizationGrant grant)
    Helper method for getting protocol log message for authorization grant object.
    static String
    getClientAuthenticationLog(com.nimbusds.oauth2.sdk.auth.ClientAuthentication authentication)
    Helper method for getting protocol log message for client authentication object.
    static String
    getRefreshTokenLog(com.nimbusds.oauth2.sdk.token.RefreshToken refreshToken)
    Helper method for getting protocol log message for refresh token object.
    static String
    toString(com.nimbusds.oauth2.sdk.http.HTTPRequest httpReq)
    Helper method to print request to string for logging.
    static String
    toString(com.nimbusds.oauth2.sdk.http.HTTPRequest httpReq, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    Helper method to print request to string for logging.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RequestUtil

      private RequestUtil()
      Private constructor.
  • Method Details

    • toString

      @Nullable public static String toString(@Nullable com.nimbusds.oauth2.sdk.http.HTTPRequest httpReq)
      Helper method to print request to string for logging.
      Parameters:
      httpReq - request to be printed
      Returns:
      request as formatted string.
    • toString

      @Nullable public static String toString(@Nullable com.nimbusds.oauth2.sdk.http.HTTPRequest httpReq, @Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Helper method to print request to string for logging.
      Parameters:
      httpReq - request to be printed
      objectMapper - object mapper used for pretty printing JSON content
      Returns:
      request as formatted string.
      Since:
      4.1.0
    • getClientAuthenticationLog

      @Nullable public static String getClientAuthenticationLog(@Nullable com.nimbusds.oauth2.sdk.auth.ClientAuthentication authentication)
      Helper method for getting protocol log message for client authentication object.
      Parameters:
      authentication - The client authentication object
      Returns:
      The log message
    • getAccessTokenLog

      @Nullable public static String getAccessTokenLog(@Nullable com.nimbusds.oauth2.sdk.token.AccessToken accessToken)
      Helper method for getting protocol log message for access token object.
      Parameters:
      accessToken - The access token object
      Returns:
      The log message
    • getAuthorizationGrantLog

      @Nullable public static String getAuthorizationGrantLog(@Nullable com.nimbusds.oauth2.sdk.AuthorizationGrant grant)
      Helper method for getting protocol log message for authorization grant object.
      Parameters:
      grant - The authorization grant object
      Returns:
      The log message
    • getRefreshTokenLog

      @Nullable public static String getRefreshTokenLog(@Nullable com.nimbusds.oauth2.sdk.token.RefreshToken refreshToken)
      Helper method for getting protocol log message for refresh token object.
      Parameters:
      refreshToken - The refresh token object
      Returns:
      The log message