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 String
getTokenData()
String
getUsername()
boolean
isEnforcePasswordChange()
void
setTokenData(String tokenData)
-
-
-
Constructor Detail
-
BearerTokenAuthenticationDataSource
public BearerTokenAuthenticationDataSource()
-
BearerTokenAuthenticationDataSource
public BearerTokenAuthenticationDataSource(String principal, String tokenData)
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceAuthenticationDataSource
-
isEnforcePasswordChange
public boolean isEnforcePasswordChange()
- Specified by:
isEnforcePasswordChange
in interfaceAuthenticationDataSource
-
getTokenData
public String getTokenData()
-
setTokenData
public void setTokenData(String tokenData)
-
-