Interface TokenValidator
-
- All Known Implementing Classes:
JwtValidator
,OAuth2IntrospectValidator
public interface TokenValidator
A
TokenValidator
is responsible to validate aBearerTokenEvidence
and support validation and transformation of different types of security tokens.- Author:
- Pedro Igor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attributes
validate(BearerTokenEvidence evidence)
Validates aBearerTokenEvidence
and returns anAttributes
instance containing all information within a security token passed throughevidence
.
-
-
-
Method Detail
-
validate
Attributes validate(BearerTokenEvidence evidence) throws RealmUnavailableException
Validates a
BearerTokenEvidence
and returns anAttributes
instance containing all information within a security token passed throughevidence
.- Parameters:
evidence
- aBearerTokenEvidence
holding the security token to validate- Returns:
- an
Attributes
instance containing all information from the security token, when valid. Otherwise, this method returns null to indicate that the security token is invalid - Throws:
RealmUnavailableException
- if any error occurs when validating the evidence
-
-