public class AppJWTSigner extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static AppAlgorithm |
DEFAULT_ALGORITHM |
| Constructor and Description |
|---|
AppJWTSigner(byte[] secret) |
AppJWTSigner(PrivateKey privateKey) |
AppJWTSigner(String secret) |
| Modifier and Type | Method and Description |
|---|---|
String |
postSign(Map<String,Object> claims,
byte[] preEncoded,
String preSign) |
String |
preSign(Map<String,Object> claims,
AppAlgorithm alg) |
String |
sign(Map<String,Object> claims,
AppAlgorithm algorithm) |
protected static final AppAlgorithm DEFAULT_ALGORITHM
public AppJWTSigner(String secret)
public AppJWTSigner(byte[] secret)
public AppJWTSigner(PrivateKey privateKey)
Copyright © 2016. All rights reserved.