Package org.glassfish.tyrus.client.auth
Class AuthConfig
java.lang.Object
org.glassfish.tyrus.client.auth.AuthConfig
AuthConfig serves as a configuration of HTTP authentication.
An instance of this class can be created by AuthConfig
and it must be registered to property bag in ClientManager
.
- Author:
- Ondrej Kosatka
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The AuthConfig.Builder is a class used for creating an instance ofAuthConfig
for purpose of HTTP Authentication. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthConfig.Builder
builder()
Create newAuthConfig.Builder
instance, which contains provided Basic and Digest authenticators.Get an unmodifiable map of authenticators, where case insensitive authentication scheme toAuthenticator
.toString()
-
Method Details
-
getAuthenticators
Get an unmodifiable map of authenticators, where case insensitive authentication scheme toAuthenticator
.- Returns:
- unmodifiable map of authenticators. Case insensitive authentication scheme is mapped to
Authenticator
.
-
builder
Create newAuthConfig.Builder
instance, which contains provided Basic and Digest authenticators.- Returns:
- builder instance.
-
toString
-