public interface BasicCredentials extends org.refcodes.mixin.CredentialsAccessor, org.refcodes.mixin.Validatable<BasicCredentials>
org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<B extends org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<B>>, org.refcodes.mixin.CredentialsAccessor.CredentialsMutator, org.refcodes.mixin.CredentialsAccessor.CredentialsProperty
org.refcodes.mixin.IdentityAccessor.IdentityBuilder<B extends org.refcodes.mixin.IdentityAccessor.IdentityBuilder<B>>, org.refcodes.mixin.IdentityAccessor.IdentityMutator, org.refcodes.mixin.IdentityAccessor.IdentityProperty
Modifier and Type | Method and Description |
---|---|
default boolean |
isValid(BasicCredentials aCredentials)
Validates the provided
BasicCredentials against this
BasicCredentials user-name and secret. |
default boolean |
isValid(String aUserName,
String aSecret)
Validates the provided user-name and secret against this
BasicCredentials user-name and secret. |
default boolean isValid(BasicCredentials aCredentials)
BasicCredentials
against this
BasicCredentials
user-name and secret. If this
BasicCredentials
instance's user-name or password are null, then
false is returned.isValid
in interface org.refcodes.mixin.Validatable<BasicCredentials>
aCredentials
- The BasicCredentials
to be tested if them fit
with the this BasicCredentials
instance.BasicCredentials
match with the this
BasicCredentials
instance and this
BasicAuthCredentials
instance's user-name and secret are
not null.default boolean isValid(String aUserName, String aSecret)
BasicCredentials
user-name and secret. If this
BasicCredentials
instance's user-name or password are null, then
false is returned.aUserName
- The user-name part to be tested if it fits with the this
BasicCredentials
instance.aSecret
- The secret part to be tested if it fits with the this
BasicCredentials
instance.BasicCredentials
instance and this
BasicAuthCredentials
instance's user-name and secret are
not null.Copyright © 2018. All rights reserved.