Interface TokenValidator
-
- All Known Implementing Classes:
JwtValidator,OAuth2IntrospectValidator
public interface TokenValidatorA
TokenValidatoris responsible to validate aBearerTokenEvidenceand 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 Attributesvalidate(BearerTokenEvidence evidence)Validates aBearerTokenEvidenceand returns anAttributesinstance containing all information within a security token passed throughevidence.
-
-
-
Method Detail
-
validate
Attributes validate(BearerTokenEvidence evidence) throws RealmUnavailableException
Validates a
BearerTokenEvidenceand returns anAttributesinstance containing all information within a security token passed throughevidence.- Parameters:
evidence- aBearerTokenEvidenceholding the security token to validate- Returns:
- an
Attributesinstance 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
-
-