Class TokenBasedAuthenticationDataSource
- java.lang.Object
-
- org.apache.archiva.redback.authentication.TokenBasedAuthenticationDataSource
-
- All Implemented Interfaces:
AuthenticationDataSource
@Service("authenticationDataSource#token") @Scope("prototype") public class TokenBasedAuthenticationDataSource extends Object implements AuthenticationDataSource
TokenBasedAuthenticationDataSource- Author:
- Joakim Erdfelt
-
-
Constructor Summary
Constructors Constructor Description TokenBasedAuthenticationDataSource()
TokenBasedAuthenticationDataSource(String principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getToken()
String
getUsername()
boolean
isEnforcePasswordChange()
void
setEnforcePasswordChange(boolean enforcePasswordChange)
void
setPrincipal(String principal)
void
setToken(String token)
String
toString()
-
-
-
Constructor Detail
-
TokenBasedAuthenticationDataSource
public TokenBasedAuthenticationDataSource(String principal)
-
TokenBasedAuthenticationDataSource
public TokenBasedAuthenticationDataSource()
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceAuthenticationDataSource
-
setPrincipal
public void setPrincipal(String principal)
-
setEnforcePasswordChange
public void setEnforcePasswordChange(boolean enforcePasswordChange)
-
isEnforcePasswordChange
public boolean isEnforcePasswordChange()
- Specified by:
isEnforcePasswordChange
in interfaceAuthenticationDataSource
-
-