Skip to content

Commit c98f77c

Browse files
committed
Remove @PostConstruct from JWKSetKeyStore
1 parent b2b915b commit c98f77c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openid-connect-common/src/main/java/org/mitre/jose/keystore/JWKSetKeyStore.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@
2424
import java.text.ParseException;
2525
import java.util.List;
2626

27-
import javax.annotation.PostConstruct;
28-
2927
import org.springframework.core.io.Resource;
3028

3129
import com.google.common.base.Charsets;
32-
import com.google.common.io.CharStreams;
30+
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;
3331
import com.nimbusds.jose.jwk.JWK;
3432
import com.nimbusds.jose.jwk.JWKSet;
3533

@@ -49,9 +47,9 @@ public JWKSetKeyStore() {
4947

5048
public JWKSetKeyStore(JWKSet jwkSet) {
5149
this.jwkSet = jwkSet;
50+
initializeJwkSet();
5251
}
5352

54-
@PostConstruct
5553
private void initializeJwkSet() {
5654

5755
if (jwkSet == null) {
@@ -92,6 +90,7 @@ public JWKSet getJwkSet() {
9290
*/
9391
public void setJwkSet(JWKSet jwkSet) {
9492
this.jwkSet = jwkSet;
93+
initializeJwkSet();
9594
}
9695

9796
/**
@@ -106,6 +105,7 @@ public Resource getLocation() {
106105
*/
107106
public void setLocation(Resource location) {
108107
this.location = location;
108+
initializeJwkSet();
109109
}
110110

111111
/**

0 commit comments

Comments
 (0)