Remove @PostConstruct from JWKSetKeyStore

pull/650/head
Amanda Anganes 11 years ago committed by Justin Richer
parent bfa61fa2d7
commit a0b7b2dbff

@ -24,12 +24,10 @@ import java.io.InputStreamReader;
import java.text.ParseException;
import java.util.List;
import javax.annotation.PostConstruct;
import org.springframework.core.io.Resource;
import com.google.common.base.Charsets;
import com.google.common.io.CharStreams;
import com.google.co/Users/aanganes/Documents/OpenID/OpenID-Connect-Java-Spring-Server/openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.javammon.io.CharStreams;
import com.nimbusds.jose.jwk.JWK;
import com.nimbusds.jose.jwk.JWKSet;
@ -49,9 +47,9 @@ public class JWKSetKeyStore {
public JWKSetKeyStore(JWKSet jwkSet) {
this.jwkSet = jwkSet;
initializeJwkSet();
}
@PostConstruct
private void initializeJwkSet() {
if (jwkSet == null) {
@ -92,6 +90,7 @@ public class JWKSetKeyStore {
*/
public void setJwkSet(JWKSet jwkSet) {
this.jwkSet = jwkSet;
initializeJwkSet();
}
/**
@ -106,6 +105,7 @@ public class JWKSetKeyStore {
*/
public void setLocation(Resource location) {
this.location = location;
initializeJwkSet();
}
/**

Loading…
Cancel
Save