Class PasswordBasedAuthenticationDataSource
- java.lang.Object
-
- org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource
-
- All Implemented Interfaces:
AuthenticationDataSource
@Service("authenticationDataSource#password") @Scope("prototype") public class PasswordBasedAuthenticationDataSource extends Object implements AuthenticationDataSource
PasswordBasedAuthenticationDataSource: the username is considered the principal with this data source- Author:
- Joakim Erdfelt
-
-
Constructor Summary
Constructors Constructor Description PasswordBasedAuthenticationDataSource()
PasswordBasedAuthenticationDataSource(String principal, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPassword()
String
getUsername()
boolean
isEnforcePasswordChange()
void
setPassword(String password)
void
setPrincipal(String principal)
String
toString()
-
-
-
Constructor Detail
-
PasswordBasedAuthenticationDataSource
public PasswordBasedAuthenticationDataSource()
-
PasswordBasedAuthenticationDataSource
public PasswordBasedAuthenticationDataSource(String principal, String password)
-
-
Method Detail
-
getPassword
public String getPassword()
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceAuthenticationDataSource
-
setPassword
public void setPassword(String password)
-
setPrincipal
public void setPrincipal(String principal)
-
isEnforcePasswordChange
public boolean isEnforcePasswordChange()
- Specified by:
isEnforcePasswordChange
in interfaceAuthenticationDataSource
-
-