org.refcodes.mixin.CredentialsAccessor, org.refcodes.mixin.IdentityAccessor, org.refcodes.mixin.SecretAccessor, org.refcodes.mixin.Validatable<BasicCredentials>BasicAuthCredentials, BasicAuthCredentials.BasicAuthCredentialsBuilderBasicAuthCredentialsBuilderImpl, BasicAuthCredentialsImpl, BasicCredentialsImplpublic 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.CredentialsPropertyorg.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 | Description |
|---|---|---|
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) |
Validates the provided
BasicCredentials 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.