Class RequestUtil
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.decoding.impl.RequestUtil
Request logging helper class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAccessTokenLog(AccessToken accessToken) Helper method for getting protocol log message for access token object.static StringHelper method for getting protocol log message for authorization grant object.static StringgetClientAuthenticationLog(ClientAuthentication authentication) Helper method for getting protocol log message for client authentication object.static StringgetRefreshTokenLog(RefreshToken refreshToken) Helper method for getting protocol log message for refresh token object.static StringtoString(HTTPRequest httpReq) Helper method to print request to string for logging.static StringtoString(HTTPRequest httpReq, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Helper method to print request to string for logging.
-
Constructor Details
-
RequestUtil
private RequestUtil()Private constructor.
-
-
Method Details
-
toString
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 HTTPRequest httpReq, @Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper) Helper method to print request to string for logging.- Parameters:
httpReq- request to be printedobjectMapper- object mapper used for pretty printing JSON content- Returns:
- request as formatted string.
- Since:
- 4.1.0
-
getClientAuthenticationLog
@Nullable public static String getClientAuthenticationLog(@Nullable ClientAuthentication authentication) Helper method for getting protocol log message for client authentication object.- Parameters:
authentication- The client authentication object- Returns:
- The log message
-
getAccessTokenLog
Helper method for getting protocol log message for access token object.- Parameters:
accessToken- The access token object- Returns:
- The log message
-
getAuthorizationGrantLog
Helper method for getting protocol log message for authorization grant object.- Parameters:
grant- The authorization grant object- Returns:
- The log message
-
getRefreshTokenLog
Helper method for getting protocol log message for refresh token object.- Parameters:
refreshToken- The refresh token object- Returns:
- The log message
-