Package org.glassfish.tyrus.client.auth
Class AuthConfig
- java.lang.Object
-
- org.glassfish.tyrus.client.auth.AuthConfig
-
@Beta public class AuthConfig extends java.lang.Object
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 inClientManager
.- Author:
- Ondrej Kosatka
- See Also:
Authenticator
,ClientManager.getProperties()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthConfig.Builder
The AuthConfig.Builder is a class used for creating an instance ofAuthConfig
for purpose of HTTP Authentication.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthConfig.Builder
builder()
Create newAuthConfig.Builder
instance, which contains provided Basic and Digest authenticators.java.util.Map<java.lang.String,Authenticator>
getAuthenticators()
Get an unmodifiable map of authenticators, where case insensitive authentication scheme toAuthenticator
.java.lang.String
toString()
-
-
-
Method Detail
-
getAuthenticators
public java.util.Map<java.lang.String,Authenticator> 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
public static AuthConfig.Builder builder()
Create newAuthConfig.Builder
instance, which contains provided Basic and Digest authenticators.- Returns:
- builder instance.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-