java.lang.Object
org.refcodes.web.BasicCredentials
org.refcodes.web.BasicAuthCredentials
org.refcodes.web.BasicAuthCredentialsBuilder
- All Implemented Interfaces:
org.refcodes.mixin.CredentialsAccessor,org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<BasicAuthCredentialsBuilder>,org.refcodes.mixin.CredentialsAccessor.CredentialsMutator,org.refcodes.mixin.CredentialsAccessor.CredentialsProperty,org.refcodes.mixin.IdentityAccessor,org.refcodes.mixin.IdentityAccessor.IdentityBuilder<BasicAuthCredentialsBuilder>,org.refcodes.mixin.IdentityAccessor.IdentityMutator,org.refcodes.mixin.IdentityAccessor.IdentityProperty,org.refcodes.mixin.SecretAccessor,org.refcodes.mixin.SecretAccessor.SecretBuilder<BasicAuthCredentialsBuilder>,org.refcodes.mixin.SecretAccessor.SecretMutator,org.refcodes.mixin.SecretAccessor.SecretProperty,org.refcodes.mixin.Validatable<BasicCredentials>,AuthTypeAccessor,AuthTypeCredentials<BasicAuthCredentials,BasicCredentials>
public class BasicAuthCredentialsBuilder
extends BasicAuthCredentials
implements org.refcodes.mixin.CredentialsAccessor.CredentialsProperty, org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<BasicAuthCredentialsBuilder>
The
BasicAuthCredentialsBuilder compares the secret
(BasicAuthCredentials.getSecret()) case sensitive but the username (
BasicAuthCredentials.getIdentity()) case insensitive within the BasicAuthCredentials.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.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 class org.refcodes.web.BasicAuthCredentials
DELIMITER_BASIC_AUTH, DELIMITER_CREDENTIALSFields inherited from class org.refcodes.web.BasicCredentials
_identity, _secret -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an emptyBasicAuthCredentialsBuildertype.BasicAuthCredentialsBuilder(String aIdentity, String aSecret) Instantiates a newBasicAuthCredentialsBuilderinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetIdentity(String aIdentity) voidwithIdentity(String aIdentity) withSecret(String aSecret) Methods inherited from class org.refcodes.web.BasicAuthCredentials
equals, fromHttpAuthorization, getAuthType, getIdentity, getSecret, hashCode, toHttpAuthorization, toString, validate, validate, withHttpAuthorizationMethods inherited from class org.refcodes.web.BasicCredentials
isValid, isValidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
letSecretMethods inherited from interface org.refcodes.mixin.Validatable
isValid
-
Constructor Details
-
BasicAuthCredentialsBuilder
public BasicAuthCredentialsBuilder()Constructs an emptyBasicAuthCredentialsBuildertype. -
BasicAuthCredentialsBuilder
Instantiates a newBasicAuthCredentialsBuilderinstance.- 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
-
withIdentity
- Specified by:
withIdentityin interfaceorg.refcodes.mixin.IdentityAccessor.IdentityBuilder<BasicAuthCredentialsBuilder>
-
withSecret
- Specified by:
withSecretin interfaceorg.refcodes.mixin.SecretAccessor.SecretBuilder<BasicAuthCredentialsBuilder>
-