public interface BasicAuthCredentials
extends org.refcodes.mixin.LoginAccessor
org.refcodes.mixin.LoginAccessor.LoginBuilder<B extends org.refcodes.mixin.LoginAccessor.LoginBuilder<B>>, org.refcodes.mixin.LoginAccessor.LoginMutator, org.refcodes.mixin.LoginAccessor.LoginProperty
org.refcodes.mixin.UserNameAccessor.UserNameBuilder<B extends org.refcodes.mixin.UserNameAccessor.UserNameBuilder<B>>, org.refcodes.mixin.UserNameAccessor.UserNameMutator, org.refcodes.mixin.UserNameAccessor.UserNameProperty
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_AUTH |
static char |
DELIMITER_BASIC_AUTH |
static char |
DELIMITER_CREDENTIALS |
Modifier and Type | Method and Description |
---|---|
void |
fromHttpAuthorization(String aHttpAuthorization)
Initializes this
BasicAuthCredentials instance from the
HeaderField.AUTHORIZATION header fields's value. |
default String |
toHttpAuthorization()
Creates a
HeaderField.AUTHORIZATION HTTP header field value from
the BasicAuthCredentials instance. |
static final String BASIC_AUTH
static final char DELIMITER_BASIC_AUTH
static final char DELIMITER_CREDENTIALS
default String toHttpAuthorization()
HeaderField.AUTHORIZATION
HTTP header field value from
the BasicAuthCredentials
instance.void fromHttpAuthorization(String aHttpAuthorization) throws IllegalArgumentException
BasicAuthCredentials
instance from the
HeaderField.AUTHORIZATION
header fields's value.aHttpAuthorization
- The HeaderField.AUTHORIZATION
header
field's valueIllegalArgumentException
- The value does not conform the the HTTP
Authorization header field's basic authentication format.Copyright © 2017. All rights reserved.