Package com.okta.jwt
Interface AccessTokenVerifier
- All Known Implementing Classes:
JjwtAccessTokenVerifier
public interface AccessTokenVerifier
An AccessTokenVerifier can be used to validate Okta's OAuth 2.0 access tokens client side. This implementation is
Okta specific as the OAuth 2.0 rfc states that access tokens are opaque. This class is intended to help developer to
create OAuth 2.0 Resource Servers.
- Since:
- 0.4
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Builder interface used to simplify construction of a AccessTokenVerifier. -
Method Summary
-
Method Details
-
decode
Validates the givenaccessToken
. Validates this token is valid Okta access token that has not expired.- Parameters:
accessToken
- string JWT access token to validate- Returns:
- a decoded JWT
- Throws:
JwtVerificationException
- when parsing or validation errors occur
-