
com.bcgdv.jwt.models.DefaultToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of token-generation Show documentation
Show all versions of token-generation Show documentation
JWT token generation with encrypted payloads and CLI
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