org.refcodes.mixin.TokenAccessor, org.refcodes.mixin.Validatable<BearerCredentials>BearerAuthCredentialsBearerAuthCredentialsImpl, BearerCredentialsImplpublic interface BearerCredentials extends org.refcodes.mixin.TokenAccessor, org.refcodes.mixin.Validatable<BearerCredentials>
| Modifier and Type | Method | Description |
|---|---|---|
default boolean |
isValid(String aToken) |
Validates the provided user-name and secret against this
BearerCredentials user-name and secret. |
default boolean |
isValid(BearerCredentials aCredentials) |
Validates the provided
BearerCredentials against this
BearerCredentials user-name and secret. |
default boolean isValid(BearerCredentials aCredentials)
BearerCredentials against this
BearerCredentials user-name and secret. If this
BearerCredentials instance's user-name or password are null, then
false is returned.isValid in interface org.refcodes.mixin.Validatable<BearerCredentials>aCredentials - The BearerCredentials to be tested if them
fit with the this BearerCredentials instance.BearerCredentials match with the this
BearerCredentials instance and this
BasicAuthCredentials instance's user-name and secret are
not null.default boolean isValid(String aToken)
BearerCredentials user-name and secret. If this
BearerCredentials instance's user-name or password are null, then
false is returned.aToken - the tokenBearerCredentials instance and this
BasicAuthCredentials instance's user-name and secret are
not null.Copyright © 2018. All rights reserved.