public class JwkProviderBuilder extends Object
| Constructor and Description |
|---|
JwkProviderBuilder()
Creates a new builder
|
| Modifier and Type | Method and Description |
|---|---|
JwkProvider |
build()
Creates a
JwkProvider |
JwkProviderBuilder |
cached(boolean cached)
Toggle the cache of Jwk
|
JwkProviderBuilder |
cached(long cacheSize,
long expiresIn,
TimeUnit unit)
Enable the cache specifying size and expire time.
|
JwkProviderBuilder |
forDomain(String domain)
Specifies the URL from where to load the jwks.
|
public JwkProviderBuilder forDomain(String domain)
domain - from where to load the jwkspublic JwkProviderBuilder cached(boolean cached)
cached - if the provider should cache jwkspublic JwkProviderBuilder cached(long cacheSize, long expiresIn, TimeUnit unit)
cacheSize - number of jwk to cacheexpiresIn - amount of time the jwk will be cachedunit - unit of time for the expire of jwkpublic JwkProvider build()
JwkProviderJwkProviderCopyright © 2016. All Rights Reserved.