Interface TokenValidationService
-
- All Known Implementing Classes:
TokenValidationServiceImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TokenValidationServiceInterface for validating token.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.eclipse.dataspaceconnector.spi.result.Result<org.eclipse.dataspaceconnector.spi.iam.ClaimToken>validate(@NotNull java.lang.String token)Validates the token.org.eclipse.dataspaceconnector.spi.result.Result<org.eclipse.dataspaceconnector.spi.iam.ClaimToken>validate(org.eclipse.dataspaceconnector.spi.iam.TokenRepresentation tokenRepresentation)Validates the token and offers possibility for additional information for validations.
-
-
-
Method Detail
-
validate
org.eclipse.dataspaceconnector.spi.result.Result<org.eclipse.dataspaceconnector.spi.iam.ClaimToken> validate(org.eclipse.dataspaceconnector.spi.iam.TokenRepresentation tokenRepresentation)
Validates the token and offers possibility for additional information for validations.- Parameters:
tokenRepresentation- A token representation including the token to verify.- Returns:
- Result of the validation.
-
validate
default org.eclipse.dataspaceconnector.spi.result.Result<org.eclipse.dataspaceconnector.spi.iam.ClaimToken> validate(@NotNull @NotNull java.lang.String token)Validates the token.- Parameters:
token- The token to be validated.- Returns:
- Result of the validation.
-
-