Interface HttpAuthenticationFeature.Builder
-
- All Known Subinterfaces:
HttpAuthenticationFeature.BasicBuilder
,HttpAuthenticationFeature.UniversalBuilder
- All Known Implementing Classes:
HttpAuthenticationFeature.BuilderImpl
- Enclosing class:
- HttpAuthenticationFeature
public static interface HttpAuthenticationFeature.Builder
Builder that creates instances ofHttpAuthenticationFeature
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpAuthenticationFeature
build()
Build the feature.HttpAuthenticationFeature.Builder
credentials(java.lang.String username, byte[] password)
Set credentials.HttpAuthenticationFeature.Builder
credentials(java.lang.String username, java.lang.String password)
Set credentials.
-
-
-
Method Detail
-
credentials
HttpAuthenticationFeature.Builder credentials(java.lang.String username, byte[] password)
Set credentials.- Parameters:
username
- Username.password
- Password as byte array.- Returns:
- This builder.
-
credentials
HttpAuthenticationFeature.Builder credentials(java.lang.String username, java.lang.String password)
Set credentials.- Parameters:
username
- Username.password
- Password asString
.- Returns:
- This builder.
-
build
HttpAuthenticationFeature build()
Build the feature.- Returns:
- Http authentication feature configured from this builder.
-
-