Package sonia.scm.security
Interface AccessTokenValidator
@ExtensionPoint
public interface AccessTokenValidator
Validates an
AccessToken
. The validator is called during authentication
with an AccessToken
.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
validate
(AccessToken token) Returnstrue
if theAccessToken
is valid.
-
Method Details
-
validate
Returnstrue
if theAccessToken
is valid. If the token is not valid and the method returnsfalse
, the authentication is treated as failed.- Parameters:
token
- the access token to verify
-