Class BasicAuthenticationHeaderProvider
java.lang.Object
io.github.evisentin.wordpress.client.domain.auth.header.BasicAuthenticationHeaderProvider
- All Implemented Interfaces:
AuthenticationHeaderProvider<WpBasicAuthenticationStrategy>
public final class BasicAuthenticationHeaderProvider
extends Object
implements AuthenticationHeaderProvider<WpBasicAuthenticationStrategy>
Creates HTTP Basic Authentication
Authorization headers.
The username and password are joined as username:password, UTF-8 encoded, Base64 encoded, and prefixed
with Basic.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the value of an HTTPAuthorizationheader.
-
Constructor Details
-
BasicAuthenticationHeaderProvider
public BasicAuthenticationHeaderProvider()
-
-
Method Details
-
createAuthorizationHeader
Description copied from interface:AuthenticationHeaderProviderCreates the value of an HTTPAuthorizationheader.- Specified by:
createAuthorizationHeaderin interfaceAuthenticationHeaderProvider<WpBasicAuthenticationStrategy>- Parameters:
strategy- authentication strategy to use- Returns:
- authorization header value
-