|
|
|
@ -319,21 +319,17 @@ public final class NimbusJwtDecoder implements JwtDecoder { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Whether to use Nimbus's typ header verification. This is {@code true} by |
|
|
|
* Whether to use Nimbus's {@code typ} header verification. This is {@code false} |
|
|
|
* default, however it may change to {@code false} in a future major release. |
|
|
|
* by default. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p> |
|
|
|
* <p> |
|
|
|
* By turning off this feature, {@link NimbusJwtDecoder} expects applications to |
|
|
|
* By turning on this feature, {@link NimbusJwtDecoder} will delegate checking the |
|
|
|
* check the {@code typ} header themselves in order to determine what kind of |
|
|
|
* {@code typ} header to Nimbus by using Nimbus's default |
|
|
|
* validation is needed |
|
|
|
* {@link JOSEObjectTypeVerifier}. |
|
|
|
* </p> |
|
|
|
* </p> |
|
|
|
* |
|
|
|
* |
|
|
|
* <p> |
|
|
|
* <p> |
|
|
|
* This is done for you when you use {@link JwtValidators} to construct a |
|
|
|
* When this is set to {@code false}, this: <code> |
|
|
|
* validator. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* <p> |
|
|
|
|
|
|
|
* That means that this: <code> |
|
|
|
|
|
|
|
* NimbusJwtDecoder jwtDecoder = NimbusJwtDecoder.withIssuerLocation(issuer).build(); |
|
|
|
* NimbusJwtDecoder jwtDecoder = NimbusJwtDecoder.withIssuerLocation(issuer).build(); |
|
|
|
* jwtDecoder.setJwtValidator(JwtValidators.createDefaultWithIssuer(issuer); |
|
|
|
* jwtDecoder.setJwtValidator(JwtValidators.createDefaultWithIssuer(issuer); |
|
|
|
* </code> |
|
|
|
* </code> |
|
|
|
@ -600,21 +596,17 @@ public final class NimbusJwtDecoder implements JwtDecoder { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Whether to use Nimbus's typ header verification. This is {@code true} by |
|
|
|
* Whether to use Nimbus's {@code typ} header verification. This is {@code false} |
|
|
|
* default, however it may change to {@code false} in a future major release. |
|
|
|
* by default. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p> |
|
|
|
* <p> |
|
|
|
* By turning off this feature, {@link NimbusJwtDecoder} expects applications to |
|
|
|
* By turning on this feature, {@link NimbusJwtDecoder} will delegate checking the |
|
|
|
* check the {@code typ} header themselves in order to determine what kind of |
|
|
|
* {@code typ} header to Nimbus by using Nimbus's default |
|
|
|
* validation is needed |
|
|
|
* {@link JOSEObjectTypeVerifier}. |
|
|
|
* </p> |
|
|
|
* </p> |
|
|
|
* |
|
|
|
* |
|
|
|
* <p> |
|
|
|
* <p> |
|
|
|
* This is done for you when you use {@link JwtValidators} to construct a |
|
|
|
* When this is set to {@code false}, this: <code> |
|
|
|
* validator. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* <p> |
|
|
|
|
|
|
|
* That means that this: <code> |
|
|
|
|
|
|
|
* NimbusJwtDecoder jwtDecoder = NimbusJwtDecoder.withIssuerLocation(issuer).build(); |
|
|
|
* NimbusJwtDecoder jwtDecoder = NimbusJwtDecoder.withIssuerLocation(issuer).build(); |
|
|
|
* jwtDecoder.setJwtValidator(JwtValidators.createDefaultWithIssuer(issuer); |
|
|
|
* jwtDecoder.setJwtValidator(JwtValidators.createDefaultWithIssuer(issuer); |
|
|
|
* </code> |
|
|
|
* </code> |
|
|
|
@ -729,21 +721,17 @@ public final class NimbusJwtDecoder implements JwtDecoder { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Whether to use Nimbus's typ header verification. This is {@code true} by |
|
|
|
* Whether to use Nimbus's {@code typ} header verification. This is {@code false} |
|
|
|
* default, however it may change to {@code false} in a future major release. |
|
|
|
* by default. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p> |
|
|
|
* <p> |
|
|
|
* By turning off this feature, {@link NimbusJwtDecoder} expects applications to |
|
|
|
* By turning on this feature, {@link NimbusJwtDecoder} will delegate checking the |
|
|
|
* check the {@code typ} header themselves in order to determine what kind of |
|
|
|
* {@code typ} header to Nimbus by using Nimbus's default |
|
|
|
* validation is needed |
|
|
|
* {@link JOSEObjectTypeVerifier}. |
|
|
|
* </p> |
|
|
|
* </p> |
|
|
|
* |
|
|
|
* |
|
|
|
* <p> |
|
|
|
* <p> |
|
|
|
* This is done for you when you use {@link JwtValidators} to construct a |
|
|
|
* When this is set to {@code false}, this: <code> |
|
|
|
* validator. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* <p> |
|
|
|
|
|
|
|
* That means that this: <code> |
|
|
|
|
|
|
|
* NimbusJwtDecoder jwtDecoder = NimbusJwtDecoder.withIssuerLocation(issuer).build(); |
|
|
|
* NimbusJwtDecoder jwtDecoder = NimbusJwtDecoder.withIssuerLocation(issuer).build(); |
|
|
|
* jwtDecoder.setJwtValidator(JwtValidators.createDefaultWithIssuer(issuer); |
|
|
|
* jwtDecoder.setJwtValidator(JwtValidators.createDefaultWithIssuer(issuer); |
|
|
|
* </code> |
|
|
|
* </code> |
|
|
|
|