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.AuthTypeProperty
Nested 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.CredentialsProperty
Nested 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.IdentityProperty
Nested 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_CREDENTIALS
Fields inherited from class org.refcodes.web.BasicCredentials
_identity, _secret
-
Constructor Summary
ConstructorDescriptionConstructs an emptyBasicAuthCredentialsBuilder
type.BasicAuthCredentialsBuilder
(String aIdentity, String aSecret) Instantiates a newBasicAuthCredentialsBuilder
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setIdentity
(String aIdentity) void
withIdentity
(String aIdentity) withSecret
(String aSecret) Methods inherited from class org.refcodes.web.BasicAuthCredentials
equals, fromHttpAuthorization, getAuthType, getIdentity, getSecret, hashCode, toHttpAuthorization, toString, validate, validate, withHttpAuthorization
Methods inherited from class org.refcodes.web.BasicCredentials
isValid, isValid
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.mixin.IdentityAccessor
getIdentity
Methods inherited from interface org.refcodes.mixin.IdentityAccessor.IdentityProperty
letIdentity
Methods inherited from interface org.refcodes.mixin.SecretAccessor
getSecret
Methods inherited from interface org.refcodes.mixin.SecretAccessor.SecretProperty
letSecret
Methods inherited from interface org.refcodes.mixin.Validatable
isValid
-
Constructor Details
-
BasicAuthCredentialsBuilder
public BasicAuthCredentialsBuilder()Constructs an emptyBasicAuthCredentialsBuilder
type. -
BasicAuthCredentialsBuilder
Instantiates a newBasicAuthCredentialsBuilder
instance.- Parameters:
aIdentity
- the user nameaSecret
- the secret
-
-
Method Details
-
setIdentity
- Specified by:
setIdentity
in interfaceorg.refcodes.mixin.IdentityAccessor.IdentityMutator
-
setSecret
- Specified by:
setSecret
in interfaceorg.refcodes.mixin.SecretAccessor.SecretMutator
-
withIdentity
- Specified by:
withIdentity
in interfaceorg.refcodes.mixin.IdentityAccessor.IdentityBuilder<BasicAuthCredentialsBuilder>
-
withSecret
- Specified by:
withSecret
in interfaceorg.refcodes.mixin.SecretAccessor.SecretBuilder<BasicAuthCredentialsBuilder>
-