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.
-
-
Constructor Summary
Constructors Constructor Description JwtTokenIssuer(File privateKeyFile)
Instantiates a new Jwt token issuer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getToken(Integer appId)
Generates a JWT token for the given APP ID.
-
-
-
Constructor Detail
-
JwtTokenIssuer
public JwtTokenIssuer(File privateKeyFile) throws NoSuchAlgorithmException, InvalidKeySpecException, IOException
Instantiates a new Jwt token issuer.- Parameters:
privateKeyFile
- the private key file- Throws:
NoSuchAlgorithmException
- the no such algorithm exceptionInvalidKeySpecException
- the invalid key spec exceptionIOException
- the io exception
-
-