Package org.opencastproject.security.jwt
Interface JWTLoginHandler
- All Known Implementing Classes:
DynamicLoginHandler
public interface JWTLoginHandler
Interface for handling JWT login.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionhandleToken(String token) Takes a JWT string, decodes it, validates it and returns the username encoded in the JWT.
-
Field Details
-
MECH_JWT
String constant identifying the login mechanism.- See Also:
-
-
Method Details
-
handleToken
Takes a JWT string, decodes it, validates it and returns the username encoded in the JWT.- Parameters:
token- The JWT string.- Returns:
- The username or
nullif the validation failed.
-