public final class JWT
extends java.lang.Object
| Constructor and Description |
|---|
JWT() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getToken(java.lang.String teamID,
java.lang.String keyID,
java.lang.String secret)
Generates a JWT token as per Apple's specifications.
|
public static java.lang.String getToken(java.lang.String teamID,
java.lang.String keyID,
java.lang.String secret)
throws java.security.spec.InvalidKeySpecException,
java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.security.SignatureException
teamID - The team ID (found in the member center)keyID - The key ID (found when generating your private key)secret - The private key (excluding the header and the footer)java.security.spec.InvalidKeySpecException - if the key is incorrectjava.security.NoSuchAlgorithmException - if the key algo failed to loadjava.security.InvalidKeyException - if the key is invalidjava.security.SignatureException - if this signature object is not initialized properly.Copyright © 2020. All Rights Reserved.