Package io.stargate.auth
Interface AuthenticationService
-
public interface AuthenticationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringcreateToken(String key, String secret, Map<String,String> headers)StringcreateToken(String key, Map<String,String> headers)Authenticator.SaslNegotiatorgetSaslNegotiator(Authenticator.SaslNegotiator wrapped, ClientInfo clientInfo)AuthenticationSubjectvalidateToken(String token)default AuthenticationSubjectvalidateToken(String token, ClientInfo clientInfo)default AuthenticationSubjectvalidateToken(String token, Map<String,String> headers)
-
-
-
Method Detail
-
createToken
String createToken(String key, String secret, Map<String,String> headers) throws UnauthorizedException
- Throws:
UnauthorizedException
-
createToken
String createToken(String key, Map<String,String> headers) throws UnauthorizedException
- Throws:
UnauthorizedException
-
validateToken
AuthenticationSubject validateToken(String token) throws UnauthorizedException
- Throws:
UnauthorizedException
-
validateToken
default AuthenticationSubject validateToken(String token, Map<String,String> headers) throws UnauthorizedException
- Throws:
UnauthorizedException
-
validateToken
default AuthenticationSubject validateToken(String token, ClientInfo clientInfo) throws UnauthorizedException
- Throws:
UnauthorizedException
-
getSaslNegotiator
Authenticator.SaslNegotiator getSaslNegotiator(Authenticator.SaslNegotiator wrapped, ClientInfo clientInfo)
-
-