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

com.uid2.shared.attest.IAttestationTokenService Maven / Gradle / Ivy

package com.uid2.shared.attest;

import java.time.Instant;

public interface IAttestationTokenService {
    /**
     * Create attestation token from user token
     * @param userToken
     * @return EncryptedAttestationToken object
     */
    EncryptedAttestationToken createToken(String userToken);

    /**
     * Create attestation token from user token
     * @param userToken
     * @param expiresAt
     * @return
     */
    @Deprecated
    String createToken(String userToken, Instant expiresAt);

    /**
     * Validate if attestation is generated from the user token provided
     * @param userToken
     * @param attestationToken
     * @return if the credential matches
     */
    boolean validateToken(String userToken, String attestationToken);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy