java.lang.Object
org.refcodes.web.BasicAuthCredentialsImpl
org.refcodes.web.BasicAuthCredentialsBuilderImpl
- All Implemented Interfaces:
org.refcodes.mixin.CredentialsAccessor,org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<BasicAuthCredentials.BasicAuthCredentialsBuilder>,org.refcodes.mixin.CredentialsAccessor.CredentialsMutator,org.refcodes.mixin.CredentialsAccessor.CredentialsProperty,org.refcodes.mixin.IdentityAccessor,org.refcodes.mixin.IdentityAccessor.IdentityBuilder<BasicAuthCredentials.BasicAuthCredentialsBuilder>,org.refcodes.mixin.IdentityAccessor.IdentityMutator,org.refcodes.mixin.IdentityAccessor.IdentityProperty,org.refcodes.mixin.SecretAccessor,org.refcodes.mixin.SecretAccessor.SecretBuilder<BasicAuthCredentials.BasicAuthCredentialsBuilder>,org.refcodes.mixin.SecretAccessor.SecretMutator,org.refcodes.mixin.SecretAccessor.SecretProperty,org.refcodes.mixin.Validatable<BasicCredentials>,AuthTypeAccessor,AuthTypeCredentials<BasicAuthCredentials,BasicCredentials>,BasicAuthCredentials,BasicAuthCredentials.BasicAuthCredentialsBuilder,BasicCredentials
public class BasicAuthCredentialsBuilderImpl extends BasicAuthCredentialsImpl implements BasicAuthCredentials.BasicAuthCredentialsBuilder
This implementation of the
BasicAuthCredentials.BasicAuthCredentialsBuilder interface
compares the secret (BasicAuthCredentialsImpl.getSecret()) case sensitive but the username (
BasicAuthCredentialsImpl.getIdentity()) case insensitive with the BasicAuthCredentialsImpl.equals(Object)
method.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.web.AuthTypeAccessor
AuthTypeAccessor.AuthTypeBuilder<B extends AuthTypeAccessor.AuthTypeBuilder<B>>, AuthTypeAccessor.AuthTypeMutator, AuthTypeAccessor.AuthTypePropertyNested classes/interfaces inherited from interface org.refcodes.web.BasicAuthCredentials
BasicAuthCredentials.BasicAuthCredentialsBuilderNested classes/interfaces inherited from interface org.refcodes.mixin.CredentialsAccessor
org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<B extends org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<B>>, org.refcodes.mixin.CredentialsAccessor.CredentialsMutator, org.refcodes.mixin.CredentialsAccessor.CredentialsPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.IdentityAccessor
org.refcodes.mixin.IdentityAccessor.IdentityBuilder<B extends org.refcodes.mixin.IdentityAccessor.IdentityBuilder<B>>, org.refcodes.mixin.IdentityAccessor.IdentityMutator, org.refcodes.mixin.IdentityAccessor.IdentityPropertyNested classes/interfaces inherited from interface org.refcodes.mixin.SecretAccessor
org.refcodes.mixin.SecretAccessor.SecretBuilder<B extends org.refcodes.mixin.SecretAccessor.SecretBuilder<B>>, org.refcodes.mixin.SecretAccessor.SecretMutator, org.refcodes.mixin.SecretAccessor.SecretProperty -
Field Summary
Fields inherited from interface org.refcodes.web.BasicAuthCredentials
DELIMITER_BASIC_AUTH, DELIMITER_CREDENTIALS -
Constructor Summary
Constructors Constructor Description BasicAuthCredentialsBuilderImpl()Constructs an emptyBasicAuthCredentials.BasicAuthCredentialsBuildertype.BasicAuthCredentialsBuilderImpl(String aIdentity, String aSecret)Instantiates a newBasicAuthCredentials.BasicAuthCredentialsBuilderinstance. -
Method Summary
Modifier and Type Method Description voidsetIdentity(String aIdentity)voidsetSecret(String aSecret)Methods inherited from class org.refcodes.web.BasicAuthCredentialsImpl
equals, fromHttpAuthorization, getIdentity, getSecret, hashCode, toHttpAuthorization, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.refcodes.web.AuthTypeCredentials
fromHttpAuthorization, toHttpAuthorizationMethods inherited from interface org.refcodes.web.BasicAuthCredentials
getAuthType, validate, validate, withHttpAuthorizationMethods inherited from interface org.refcodes.web.BasicAuthCredentials.BasicAuthCredentialsBuilder
withIdentity, withSecretMethods inherited from interface org.refcodes.web.BasicCredentials
isValid, isValidMethods inherited from interface org.refcodes.mixin.IdentityAccessor
getIdentityMethods inherited from interface org.refcodes.mixin.IdentityAccessor.IdentityProperty
letIdentityMethods inherited from interface org.refcodes.mixin.SecretAccessor
getSecretMethods inherited from interface org.refcodes.mixin.SecretAccessor.SecretProperty
letSecret
-
Constructor Details
-
BasicAuthCredentialsBuilderImpl
public BasicAuthCredentialsBuilderImpl()Constructs an emptyBasicAuthCredentials.BasicAuthCredentialsBuildertype. -
BasicAuthCredentialsBuilderImpl
Instantiates a newBasicAuthCredentials.BasicAuthCredentialsBuilderinstance.- Parameters:
aIdentity- the user nameaSecret- the secret
-
-
Method Details
-
setIdentity
- Specified by:
setIdentityin interfaceorg.refcodes.mixin.IdentityAccessor.IdentityMutator
-
setSecret
- Specified by:
setSecretin interfaceorg.refcodes.mixin.SecretAccessor.SecretMutator
-