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
Nested ClassesModifier and TypeClassDescriptionstatic final classThe AuthConfig.Builder is a class used for creating an instance ofAuthConfigfor purpose of HTTP Authentication. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthConfig.Builderbuilder()Create newAuthConfig.Builderinstance, 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.Builderinstance, which contains provided Basic and Digest authenticators.- Returns:
- builder instance.
-
toString
-