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

com.bcgdv.jwt.models.DefaultToken Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
package com.bcgdv.jwt.models;

/**
 * Token wrapper class for serialisation
 */
public class DefaultToken extends BaseJwtToken {

    /**
     * The encrypted secret, including assertions
     */
    protected String secret;

    /**
     * Not used but needed
     */
    public DefaultToken() {
    }

    /**
     * Create using this constructor.
     * @param secret the encrypted secret.
     * @param expiryTimeInMillis the expiry time.
     */
    public DefaultToken(String secret, Long expiryTimeInMillis) {
        this.secret = secret;
        this.setExpiryInMilliSeconds(expiryTimeInMillis);
    }

    /**
     * The encrypted secret
     * @return as String (URL friendly)
     */
    public String getSecret() {
        return secret;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy