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

com.cybersource.flex.sdk.TransientToken Maven / Gradle / Ivy

package com.cybersource.flex.sdk;

import java.security.PublicKey;
import java.util.Map;

public interface TransientToken extends FlexApiJwtClaims, FlexApiCorrelationInfo {

    static TransientToken parse(PublicKey publicKey, String jwt) {
        return new TransientTokenImpl(publicKey, jwt, null, System.currentTimeMillis());
    }

    /**
     * Provides Transient Token Id.
     * It is a string value that can be used by merchant to request CyberSource service in lieu of SAD.
     *0
     * @return Transient Token Id
     */
    @Override
    String getId();

    /**
     * Returns underlying Flexible Token, as returned from CyberSource Flex service.
     * The returned string is in a compact serialization of signed JWT (i.e. header.payload.signature).
     *
     * @return JWT string
     */
    @Override
    String toString();

    Map getData();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy