org.refcodes.mixin.TokenAccessor
, org.refcodes.mixin.Validatable<BearerCredentials>
, AuthCredentials<BearerAuthCredentials,BearerCredentials>
, AuthTypeAccessor
, BearerAuthCredentials
, BearerCredentials
public class BearerAuthCredentialsImpl extends Object implements BearerAuthCredentials
BearerAuthCredentials
interface.AuthTypeAccessor.AuthTypeBuilder<B extends AuthTypeAccessor.AuthTypeBuilder<B>>, AuthTypeAccessor.AuthTypeMutator, AuthTypeAccessor.AuthTypeProperty
DELIMITER_BEARER_AUTH
Constructor | Description |
---|---|
BearerAuthCredentialsImpl() |
Instantiates a new bearer auth credentials impl.
|
BearerAuthCredentialsImpl(String aSecret) |
Instantiates a new bearer auth credentials impl.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
void |
fromHttpAuthorization(String aHttpAuthorization) |
Initializes this
AuthCredentials instance from the
HeaderField.AUTHORIZATION Header-Fields's value. |
String |
getToken() |
|
int |
hashCode() |
|
String |
toHttpAuthorization() |
Creates a
HeaderField.AUTHORIZATION HTTP Header-Field value from
the AuthCredentials instance. |
String |
toString() |
getAuthType, validate, validate, withHttpAuthorization
isValid, isValid
public BearerAuthCredentialsImpl()
public BearerAuthCredentialsImpl(String aSecret)
aSecret
- the secretpublic String getToken()
getToken
in interface org.refcodes.mixin.TokenAccessor
public void fromHttpAuthorization(String aHttpAuthorization)
AuthCredentials
instance from the
HeaderField.AUTHORIZATION
Header-Fields's value.fromHttpAuthorization
in interface AuthCredentials<BearerAuthCredentials,BearerCredentials>
aHttpAuthorization
- The HeaderField.AUTHORIZATION
header
field's valuepublic String toHttpAuthorization()
HeaderField.AUTHORIZATION
HTTP Header-Field value from
the AuthCredentials
instance.toHttpAuthorization
in interface AuthCredentials<BearerAuthCredentials,BearerCredentials>
Copyright © 2018. All rights reserved.