@RequestScoped @Path(value="/endp") public class PublicKeyEndpoint extends Object
Constructor and Description |
---|
PublicKeyEndpoint() |
Modifier and Type | Method and Description |
---|---|
String |
publicKey4k()
An endpoint that returns the contents of the bundled /publicKey4k.pem key
|
jakarta.json.JsonObject |
publicKey4kAsJWKS(String kid)
An endpoint that converts the bundled /publicKey4k.pem key in the corresponding JWKS format
|
jakarta.json.JsonObject |
verifyIssIsOk()
Check a token with an iss matches the mp.jwt.verify.issuer value
|
jakarta.json.JsonObject |
verifyKeyAsBase64JWK(String kid)
Verify that the injected key is a base64 encoded JWK public key
|
jakarta.json.JsonObject |
verifyKeyAsJWK(String kid)
Verify that the injected key is a JWK public key
|
jakarta.json.JsonObject |
verifyKeyAsJWKS(String kid)
Verify that the injected key is a JWKS public key
|
jakarta.json.JsonObject |
verifyKeyAsPEM()
Verify that the injected key is a PEM RSA public key
|
jakarta.json.JsonObject |
verifyKeyLocationAsJWKResource(String kid) |
jakarta.json.JsonObject |
verifyKeyLocationAsJWKSResource(String kid) |
jakarta.json.JsonObject |
verifyKeyLocationAsJWKSUrl(String kid)
Check the location exists and is a URL whose contents are valid JWKS public key
|
jakarta.json.JsonObject |
verifyKeyLocationAsPEMResource() |
jakarta.json.JsonObject |
verifyKeyLocationAsPEMUrl()
Check the location exists and is a URL whose contents are valid PEM public key
|
@GET @Path(value="/verifyKeyAsPEM") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyAsPEM()
@GET @Path(value="/verifyKeyLocationAsPEMResource") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyLocationAsPEMResource()
@GET @Path(value="/verifyKeyLocationAsPEMUrl") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyLocationAsPEMUrl()
@GET @Path(value="/verifyKeyAsJWK") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyAsJWK(@QueryParam(value="kid") String kid)
@GET @Path(value="/verifyKeyAsBase64JWK") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyAsBase64JWK(@QueryParam(value="kid") String kid)
@GET @Path(value="/verifyKeyAsJWKS") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyAsJWKS(@QueryParam(value="kid") String kid)
@GET @Path(value="/verifyKeyLocationAsJWKResource") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyLocationAsJWKResource(@QueryParam(value="kid") String kid)
@GET @Path(value="/verifyKeyLocationAsJWKSResource") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyLocationAsJWKSResource(@QueryParam(value="kid") String kid)
@GET @Path(value="/verifyKeyLocationAsJWKSUrl") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyKeyLocationAsJWKSUrl(@QueryParam(value="kid") String kid)
kid
- - expected kid of JWKS@GET @Path(value="/verifyIssIsOk") @Produces(value="application/json") @RolesAllowed(value="Tester") public jakarta.json.JsonObject verifyIssIsOk()
@GET @Path(value="/publicKey4k") @Produces(value="text/plain") @PermitAll public String publicKey4k() throws IOException
IOException
@GET @Path(value="/publicKey4kAsJWKS") @Produces(value="application/json") @PermitAll public jakarta.json.JsonObject publicKey4kAsJWKS(@QueryParam(value="kid") String kid) throws Exception
kid
- - the kid to use in the JWKSException
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.