Class BearerTokenAuthenticationDataSource
- java.lang.Object
-
- org.apache.archiva.redback.authentication.BearerTokenAuthenticationDataSource
-
- All Implemented Interfaces:
AuthenticationDataSource
public class BearerTokenAuthenticationDataSource extends Object implements AuthenticationDataSource
Datasource used for authentication by Bearer token (JWT)- Since:
- 3.0
- Author:
- Martin Stockhammer
-
-
Constructor Summary
Constructors Constructor Description BearerTokenAuthenticationDataSource()BearerTokenAuthenticationDataSource(String principal, String tokenData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTokenData()StringgetUsername()booleanisEnforcePasswordChange()voidsetTokenData(String tokenData)
-
-
-
Constructor Detail
-
BearerTokenAuthenticationDataSource
public BearerTokenAuthenticationDataSource()
-
BearerTokenAuthenticationDataSource
public BearerTokenAuthenticationDataSource(String principal, String tokenData)
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsernamein interfaceAuthenticationDataSource
-
isEnforcePasswordChange
public boolean isEnforcePasswordChange()
- Specified by:
isEnforcePasswordChangein interfaceAuthenticationDataSource
-
getTokenData
public String getTokenData()
-
setTokenData
public void setTokenData(String tokenData)
-
-