Java Code Examples for

The following examples show how to use These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: entref-spring-boot   Source File:    License: MIT License 5 votes vote down vote up
public void configure(ResourceServerSecurityConfigurer resources) throws Exception {
    // setup the resource id

    // setup the token store
    resources.tokenStore(new JwkTokenStore(this.env.getProperty(Constants.ENV_OAUTH_KEYSET_URI)));
Example 2
public void jwkTokenStoreShouldBeConditionalOnMissingBean() throws Exception {
	this.context = new SpringApplicationBuilder(JwkTokenStoreConfiguration.class, ResourceConfiguration.class)
Example 3
public TokenStore jwkTokenStore() throws MalformedURLException {
    ProviderDiscoveryClient discoveryClient = new ProviderDiscoveryClient(ssoServiceUrl);
    ProviderConfiguration providerConfiguration =;

    IssuerClaimVerifier issuerClaimVerifier = new IssuerClaimVerifier(providerConfiguration.getIssuer());

    return new JwkTokenStore(
Example 4
Source Project: codenjoy   Source File:    License: GNU General Public License v3.0 5 votes vote down vote up
public TokenStore tokenStore() {
    JwtAccessTokenConverter accessTokenConverter = new JwtAccessTokenConverter();
    DefaultAccessTokenConverter tokenConverter = new DefaultAccessTokenConverter();

    return new JwkTokenStore(clientProperties.getProvider().get("dojo").getJwkSetUri(),
Example 5
 * Configures the JWKS bases TokenStore.
public TokenStore tokenStore() {
	return new JwkTokenStore(configProps.getJwkSetUrl());
Example 6
public TokenStore jwkTokenStore() {
	return new JwkTokenStore(this.resource.getJwk().getKeySetUri());
Example 7
public TokenStore tokenStore() {
	return new JwkTokenStore("");