Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
dev.rafex.ether.jwt.KeyProvider Interface Reference

Provides cryptographic material used to sign and verify JWT tokens. More...

Inheritance diagram for dev.rafex.ether.jwt.KeyProvider:
Collaboration diagram for dev.rafex.ether.jwt.KeyProvider:

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)

Detailed Description

Provides cryptographic material used to sign and verify JWT tokens.

Definition at line 36 of file KeyProvider.java.

Member Function Documentation

◆ algorithm()

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().

Here is the caller graph for this function:

◆ hmac() [1/2]

KeyProvider dev.rafex.ether.jwt.KeyProvider.hmac ( final byte[] secret)
static

Definition at line 53 of file KeyProvider.java.

References dev.rafex.ether.jwt.JwtAlgorithm.HS256.

◆ hmac() [2/2]

KeyProvider dev.rafex.ether.jwt.KeyProvider.hmac ( final String secret)
static

Definition at line 46 of file KeyProvider.java.

References hmac().

Referenced by hmac().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hmacSecret()

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().

Here is the caller graph for this function:

◆ privateKey()

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().

Here is the caller graph for this function:

◆ publicKey()

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().

Here is the caller graph for this function:

◆ rsa()

KeyProvider dev.rafex.ether.jwt.KeyProvider.rsa ( final PrivateKey privateKey,
final PublicKey publicKey )
static

Definition at line 61 of file KeyProvider.java.

References privateKey(), publicKey(), and dev.rafex.ether.jwt.JwtAlgorithm.RS256.

Here is the call graph for this function:

◆ rsaVerifier()

KeyProvider dev.rafex.ether.jwt.KeyProvider.rsaVerifier ( final PublicKey publicKey)
static

Definition at line 68 of file KeyProvider.java.

References publicKey(), and dev.rafex.ether.jwt.JwtAlgorithm.RS256.

Here is the call graph for this function:

The documentation for this interface was generated from the following file: