Package com.spotify.github.v3.clients
Class JwtTokenIssuer
- java.lang.Object
-
- com.spotify.github.v3.clients.JwtTokenIssuer
-
public class JwtTokenIssuer extends Object
The helper Jwt token issuer.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JwtTokenIssuerfromPrivateKey(byte[] privateKey)Instantiates a new Jwt token issuer.StringgetToken(Integer appId)Generates a JWT token for the given APP ID.
-
-
-
Method Detail
-
fromPrivateKey
public static JwtTokenIssuer fromPrivateKey(byte[] privateKey) throws NoSuchAlgorithmException, InvalidKeySpecException
Instantiates a new Jwt token issuer.- Parameters:
privateKey- the private key to use- Throws:
NoSuchAlgorithmException- the no such algorithm exceptionInvalidKeySpecException- the invalid key spec exception
-
-