Interface TokenValidator

All Known Implementing Classes:
JwtValidator, OAuth2IntrospectValidator

public interface TokenValidator

A TokenValidator is responsible to validate a BearerTokenEvidence and support validation and transformation of different types of security tokens.

Author:
Pedro Igor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.wildfly.security.authz.Attributes
    validate(org.wildfly.security.evidence.BearerTokenEvidence evidence)
    Validates a BearerTokenEvidence and returns an Attributes instance containing all information within a security token passed through evidence.
  • Method Details

    • validate

      org.wildfly.security.authz.Attributes validate(org.wildfly.security.evidence.BearerTokenEvidence evidence) throws org.wildfly.security.auth.server.RealmUnavailableException

      Validates a BearerTokenEvidence and returns an Attributes instance containing all information within a security token passed through evidence.

      Parameters:
      evidence - a BearerTokenEvidence 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:
      org.wildfly.security.auth.server.RealmUnavailableException - if any error occurs when validating the evidence