Package com.auth0.client
Class LoggingOptions
java.lang.Object
com.auth0.client.LoggingOptions
Used to configure the HTTP Logging options.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLoggingOptions
(LoggingOptions.LogLevel logLevel) Create a new instance using the specified LoggingOptions.LogLevel -
Method Summary
Modifier and TypeMethodDescriptionvoid
setHeadersToRedact
(Set<String> headersToRedact) Sets the headers to redact from the log.
-
Constructor Details
-
LoggingOptions
Create a new instance using the specified LoggingOptions.LogLevel- Parameters:
logLevel
- the log level to set. Must not be null.
-
-
Method Details
-
getLogLevel
- Returns:
- the log level of this instance.
-
getHeadersToRedact
- Returns:
- the headers that should be redacted from the output log.
-
setHeadersToRedact
Sets the headers to redact from the log. When usingHEADERS
orBODY
logging levels, there is the potential of leaking sensitive information such as "Authorization" or "Cookie" headers. Note that this does not redact any of the body contents from being logged, so care must always be taken withHEADERS
orBODY
log levels.- Parameters:
headersToRedact
- the Set of headers to redact.
-