public class BearerAuthCredentialsImpl extends Object implements BearerAuthCredentials
BearerAuthCredentials
interface.org.refcodes.mixin.TokenAccessor.TokenBuilder<B extends org.refcodes.mixin.TokenAccessor.TokenBuilder<B>>, org.refcodes.mixin.TokenAccessor.TokenMutator, org.refcodes.mixin.TokenAccessor.TokenProperty
AuthTypeAccessor.AuthTypeBuilder<B extends AuthTypeAccessor.AuthTypeBuilder<B>>, AuthTypeAccessor.AuthTypeMutator, AuthTypeAccessor.AuthTypeProperty
DELIMITER_BEARER_AUTH
Constructor and Description |
---|
BearerAuthCredentialsImpl()
Instantiates a new bearer auth credentials impl.
|
BearerAuthCredentialsImpl(String aSecret)
Instantiates a new bearer auth credentials impl.
|
Modifier and Type | Method and 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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAuthType, validate, validate, withHttpAuthorization
isValid, isValid
public BearerAuthCredentialsImpl()
public BearerAuthCredentialsImpl(String aSecret)
aSecret
- the a 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 © 2017. All rights reserved.