All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.radarbase.auth.authentication.TokenVerifier.kt Maven / Gradle / Ivy

package org.radarbase.auth.authentication

import org.radarbase.auth.exception.TokenValidationException
import org.radarbase.auth.token.RadarToken

/**
 * Verifies a token from string and returns a parsed version of it.
 */
interface TokenVerifier {
    /**
     * Verifies a token from string and returns a parsed version of it.
     * @throws TokenValidationException if the token cannot be verified by this verifier.
     */
    @Throws(TokenValidationException::class)
    fun verify(token: String): RadarToken
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy