Package org.refcodes.net
Class BasicAuthCredentialsBuilderImpl
- java.lang.Object
-
- org.refcodes.net.BasicAuthCredentialsImpl
-
- org.refcodes.net.BasicAuthCredentialsBuilderImpl
-
- All Implemented Interfaces:
org.refcodes.mixin.CredentialsAccessor,org.refcodes.mixin.CredentialsAccessor.CredentialsBuilder<BasicCredentials>,org.refcodes.mixin.CredentialsAccessor.CredentialsMutator,org.refcodes.mixin.CredentialsAccessor.CredentialsProperty,org.refcodes.mixin.IdentityAccessor,org.refcodes.mixin.IdentityAccessor.IdentityBuilder<BasicCredentials>,org.refcodes.mixin.IdentityAccessor.IdentityMutator,org.refcodes.mixin.IdentityAccessor.IdentityProperty,org.refcodes.mixin.SecretAccessor,org.refcodes.mixin.SecretAccessor.SecretBuilder<BasicCredentials>,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 theBasicAuthCredentials.BasicAuthCredentialsBuilderinterface compares the secret (BasicAuthCredentialsImpl.getSecret()) case sensitive but the username (BasicAuthCredentialsImpl.getIdentity()) case insensitive with theBasicAuthCredentialsImpl.equals(Object)method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.net.AuthTypeAccessor
AuthTypeAccessor.AuthTypeBuilder<B extends AuthTypeAccessor.AuthTypeBuilder<B>>, AuthTypeAccessor.AuthTypeMutator, AuthTypeAccessor.AuthTypeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.net.BasicAuthCredentials
BasicAuthCredentials.BasicAuthCredentialsBuilder
-
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
-
-
Field Summary
-
Fields inherited from interface org.refcodes.net.BasicAuthCredentials
DELIMITER_BASIC_AUTH, DELIMITER_CREDENTIALS
-
-
Constructor Summary
Constructors Constructor Description BasicAuthCredentialsBuilderImpl()Constructs an emptyBasicAuthCredentials.BasicAuthCredentialsBuildertype.BasicAuthCredentialsBuilderImpl(java.lang.String aIdentity, java.lang.String aSecret)Instantiates a newBasicAuthCredentials.BasicAuthCredentialsBuilderinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetIdentity(java.lang.String aIdentity)voidsetSecret(java.lang.String aSecret)-
Methods inherited from interface org.refcodes.net.AuthTypeCredentials
fromHttpAuthorization, toHttpAuthorization
-
Methods inherited from interface org.refcodes.net.BasicAuthCredentials
getAuthType, validate, validate, withHttpAuthorization
-
Methods inherited from interface org.refcodes.net.BasicAuthCredentials.BasicAuthCredentialsBuilder
withIdentity, withSecret
-
Methods inherited from class org.refcodes.net.BasicAuthCredentialsImpl
equals, fromHttpAuthorization, getIdentity, getSecret, hashCode, toHttpAuthorization, toString
-
Methods inherited from interface org.refcodes.net.BasicCredentials
isValid, isValid
-
-
-
-
Constructor Detail
-
BasicAuthCredentialsBuilderImpl
public BasicAuthCredentialsBuilderImpl()
Constructs an emptyBasicAuthCredentials.BasicAuthCredentialsBuildertype.
-
BasicAuthCredentialsBuilderImpl
public BasicAuthCredentialsBuilderImpl(java.lang.String aIdentity, java.lang.String aSecret)Instantiates a newBasicAuthCredentials.BasicAuthCredentialsBuilderinstance.- Parameters:
aIdentity- the user nameaSecret- the secret
-
-
Method Detail
-
setIdentity
public void setIdentity(java.lang.String aIdentity)
- Specified by:
setIdentityin interfaceorg.refcodes.mixin.IdentityAccessor.IdentityMutator
-
setSecret
public void setSecret(java.lang.String aSecret)
- Specified by:
setSecretin interfaceorg.refcodes.mixin.SecretAccessor.SecretMutator
-
-