public class JwtKeyGenerator extends Object implements KeyGenerator
Constructor and Description |
---|
JwtKeyGenerator(String spec) |
Modifier and Type | Method and Description |
---|---|
static KeyExpression |
generateJwtKey(String spec)
generate JWT key
|
KeyExpression |
generateKey() |
KeyExpression |
getKey(String spec) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSpec
public JwtKeyGenerator(String spec)
public KeyExpression generateKey()
generateKey
in interface KeyGenerator
public KeyExpression getKey(String spec)
getKey
in interface KeyGenerator
public static KeyExpression generateJwtKey(String spec)
spec
- eg: SignatureAlgorithm.HS512.getValue()Copyright © 2017. All rights reserved.