src/main/java/com/initialspark/nhslogin/demo/config/WebSecurityConfig.java
/**
     * This loads the public and private keys for this client from the
     * JWKS file, path configured above.
     *
     * @return
     */
This loads the public and private keys for this client from the
JWKS file, path configured above.

@return
This loads the public and private keys for this client from the JWKS file path configured above . @return
@Bean
    public JWKSetKeyStore createKeyStore() {
        JWKSetKeyStore keyStore = new JWKSetKeyStore();
        keyStore.setLocation(new ClassPathResource(keystorePath));
        return keyStore;
    }
@ Bean public JWKSetKeyStore createKeyStore ( ) { JWKSetKeyStore keyStore = new JWKSetKeyStore ( ) ; keyStore . setLocation ( new ClassPathResource ( keystorePath ) ) ; return keyStore ; }
This loads the public and private keys for this client from the
 JWKS file, path configured above.
This loads the public and private keys for this client from the JWKS file path configured above .
//if in pem format keypair needs converting to jwks format