Interface HttpAuthenticationFeature.UniversalBuilder
- All Superinterfaces:
HttpAuthenticationFeature.Builder
- Enclosing class:
- HttpAuthenticationFeature
public static interface HttpAuthenticationFeature.UniversalBuilder
extends HttpAuthenticationFeature.Builder
Extension of
HttpAuthenticationFeature.Builder
that builds the http authentication feature configured in universal mode that supports
basic and digest authentication.-
Method Summary
Modifier and TypeMethodDescriptioncredentialsForBasic
(String username, byte[] password) Set credentials that will be used for basic authentication only.credentialsForBasic
(String username, String password) Set credentials that will be used for basic authentication only.credentialsForDigest
(String username, byte[] password) Set credentials that will be used for digest authentication only.credentialsForDigest
(String username, String password) Set credentials that will be used for digest authentication only.Methods inherited from interface org.glassfish.jersey.client.authentication.HttpAuthenticationFeature.Builder
build, credentials, credentials
-
Method Details
-
credentialsForBasic
Set credentials that will be used for basic authentication only.- Parameters:
username
- Username.password
- Password asString
.- Returns:
- This builder.
-
credentialsForBasic
Set credentials that will be used for basic authentication only.- Parameters:
username
- Username.password
- Password asbyte array
.- Returns:
- This builder.
-
credentialsForDigest
Set credentials that will be used for digest authentication only.- Parameters:
username
- Username.password
- Password asString
.- Returns:
- This builder.
-
credentialsForDigest
Set credentials that will be used for digest authentication only.- Parameters:
username
- Username.password
- Password asbyte array
.- Returns:
- This builder.
-