Provides cryptographic material used to sign and verify JWT tokens. More...
Classes | |
| class | BasicKeyProvider |
Public Member Functions | |
| JwtAlgorithm | algorithm () |
| byte[] | hmacSecret () |
| PrivateKey | privateKey () |
| PublicKey | publicKey () |
Static Public Member Functions | |
| static KeyProvider | hmac (final byte[] secret) |
| static KeyProvider | hmac (final String secret) |
| static KeyProvider | rsa (final PrivateKey privateKey, final PublicKey publicKey) |
| static KeyProvider | rsaVerifier (final PublicKey publicKey) |
Provides cryptographic material used to sign and verify JWT tokens.
Definition at line 36 of file KeyProvider.java.
| JwtAlgorithm dev.rafex.ether.jwt.KeyProvider.algorithm | ( | ) |
Implemented in dev.rafex.ether.jwt.KeyProvider.BasicKeyProvider.
Referenced by dev.rafex.ether.jwt.internal.JwtSigner.sign(), and dev.rafex.ether.jwt.internal.JwtSigner.verify().
|
static |
Definition at line 53 of file KeyProvider.java.
References dev.rafex.ether.jwt.JwtAlgorithm.HS256.
|
static |
Definition at line 46 of file KeyProvider.java.
References hmac().
Referenced by hmac().
| byte[] dev.rafex.ether.jwt.KeyProvider.hmacSecret | ( | ) |
Implemented in dev.rafex.ether.jwt.KeyProvider.BasicKeyProvider.
Referenced by dev.rafex.ether.jwt.internal.JwtSigner.sign(), and dev.rafex.ether.jwt.internal.JwtSigner.verify().
| PrivateKey dev.rafex.ether.jwt.KeyProvider.privateKey | ( | ) |
Implemented in dev.rafex.ether.jwt.KeyProvider.BasicKeyProvider.
Referenced by rsa(), and dev.rafex.ether.jwt.internal.JwtSigner.sign().
| PublicKey dev.rafex.ether.jwt.KeyProvider.publicKey | ( | ) |
Implemented in dev.rafex.ether.jwt.KeyProvider.BasicKeyProvider.
Referenced by rsa(), rsaVerifier(), and dev.rafex.ether.jwt.internal.JwtSigner.verify().
|
static |
Definition at line 61 of file KeyProvider.java.
References privateKey(), publicKey(), and dev.rafex.ether.jwt.JwtAlgorithm.RS256.
|
static |
Definition at line 68 of file KeyProvider.java.
References publicKey(), and dev.rafex.ether.jwt.JwtAlgorithm.RS256.