'''''当我们两个参考变量指向同一个整数对象并且其中一个更改其值时,另一个变量的值不变,但是当两个变量指向单个列表对象而其中一个更改某些值时值的变化也反映在另一个变量中。为什么??'''
String azureKeyDiscoveryUrl =
"https://login.microsoftonline.com/{my-tenant-id}/discovery/keys";
HttpsJwks azureKeyDiscovery = new HttpsJwks(azureKeyDiscoveryUrl);
HttpsJwksVerificationKeyResolver azureJwksKeyResolver = new HttpsJwksVerificationKeyResolver(azureKeyDiscovery);
JwtConsumer azureJwtConsumer = new JwtConsumerBuilder()
.setRequireExpirationTime()
.setAllowedClockSkewInSeconds(30)
.setRequireIssuedAt()
.setRequireNotBefore()
.setVerificationKeyResolver(azureJwksKeyResolver)
.setExpectedAudience("my-audience")
.setJwsAlgorithmConstraints(new AlgorithmConstraints(
AlgorithmConstraints.ConstraintType.WHITELIST, AlgorithmIdentifiers.RSA_USING_SHA256))
.build();
JwtClaims claims = azureJwtConsumer.processToClaims("tokenStringHere");
'''两种情况下的行为都应该相同。'''