Skip to content

Commit

Permalink
Bump MP parent version to 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sberyozkin committed Sep 26, 2024
1 parent 5fe1b62 commit e9ed476
Show file tree
Hide file tree
Showing 48 changed files with 80 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public ClaimLiteral() {

/**
* Construct a Claim literal from a string name of a claim
*
*
* @param value
* - the string name for claim
*/
Expand All @@ -47,7 +47,7 @@ public ClaimLiteral(String value) {
}
/**
* Construct a Claim literal from a standard claim defined in {@linkplain Claims}
*
*
* @param standard
* - the claim enum value
*/
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile-parent</artifactId>
<version>2.6</version>
<version>2.8</version>
</parent>

<groupId>org.eclipse.microprofile.jwt</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
public class BaseExtension implements LoadableExtension {
/**
* Called to allow for extensions of the Arquillian runtime
*
*
* @param extensionBuilder
* - extension SPI
*/
Expand All @@ -40,7 +40,7 @@ public void register(ExtensionBuilder extensionBuilder) {

/**
* Override to return your implementation of ApplicationArchiveProcessor
*
*
* @return vendor ApplicationArchiveProcessor implementation
*/
protected Class<? extends ApplicationArchiveProcessor> getApplicationArchiveProcessor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void process(Archive<?> appArchive, TestClass testClass) {

/**
* Called to get names of WEB-INF resources
*
*
* @return names of classpath resources to add to the WEB-INF directory, empty for none
*/
protected String[] getWebInfResources() {
Expand All @@ -66,7 +66,7 @@ protected String[] getWebInfResources() {

/**
* groupId:artifactId:version dependencies to include in WEB-INF/lib directory
*
*
* @return names of mvn dependencies to include, empty for none
*/
protected String[] getWebInfLibArtifacts() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ private static String readJsonContent(String jsonResName) throws IOException {

/**
* Read a classpath resource into a string and return it.
*
*
* @param resName
* - classpath resource name
* @return the resource content as a string
Expand All @@ -705,7 +705,7 @@ public static String readResource(String resName) throws IOException {

/**
* Read a PEM encoded RSA private key from the classpath
*
*
* @param pemResName
* - key file resource name
* @return RSAPrivateKey
Expand All @@ -721,7 +721,7 @@ public static RSAPrivateKey readPrivateKey(final String pemResName) throws Excep

/**
* Read a PEM encoded EC private key from the classpath
*
*
* @param pemResName
* - key file resource name
* @return ECPrivateKey
Expand All @@ -737,7 +737,7 @@ public static ECPrivateKey readECPrivateKey(final String pemResName) throws Exce

/**
* Read a PEM encoded RSA public key from the classpath
*
*
* @param pemResName
* - key file resource name
* @return RSAPublicKey
Expand All @@ -753,7 +753,7 @@ public static RSAPublicKey readPublicKey(final String pemResName) throws Excepti

/**
* Read a PEM encoded EC public key from the classpath
*
*
* @param pemResName
* - key file resource name
* @return ECPublicKey
Expand All @@ -769,7 +769,7 @@ public static ECPublicKey readECPublicKey(final String pemResName) throws Except

/**
* Read a public key in JWK format from the classpath
*
*
* @param jwkResName
* - key file resource name
* @return PublicKey
Expand All @@ -783,7 +783,7 @@ public static PublicKey readJwkPublicKey(final String jwkResName) throws Excepti

/**
* Read a private key in JWK format from the classpath
*
*
* @param jwkResName
* - key file resource name
* @return PublicKey
Expand All @@ -797,7 +797,7 @@ public static PrivateKey readJwkPrivateKey(final String jwkResName) throws Excep

/**
* Generate a new RSA keypair.
*
*
* @param keySize
* - the size of the key
* @return KeyPair
Expand All @@ -812,7 +812,7 @@ public static KeyPair generateKeyPair(final int keySize) throws NoSuchAlgorithmE

/**
* Decode a PEM encoded private key string to an RSA PrivateKey
*
*
* @param pemEncoded
* - PEM string for private key
* @return RSAPrivateKey
Expand All @@ -829,7 +829,7 @@ public static RSAPrivateKey decodePrivateKey(final String pemEncoded) throws Exc

/**
* Decode a PEM encoded private key string to an EC PrivateKey
*
*
* @param pemEncoded
* - PEM string for private key
* @return ECPrivateKey
Expand All @@ -846,7 +846,7 @@ public static ECPrivateKey decodeECPrivateKey(final String pemEncoded) throws Ex

/**
* Decode a PEM encoded public key string to an RSA PublicKey
*
*
* @param pemEncoded
* - PEM string for private key
* @return RSAPublicKey
Expand All @@ -863,7 +863,7 @@ public static RSAPublicKey decodePublicKey(String pemEncoded) throws Exception {

/**
* Decode a PEM encoded public key string to an EC PublicKey
*
*
* @param pemEncoded
* - PEM string for private key
* @return ECPublicKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class ECPublicKeyAsJWKLocationTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is referenced via
* the mp.jwt.verify.publickey.location as an embedded resource property. The root url is /jwks
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class ECPublicKeyAsPEMLocationTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is included as the
* mp.jwt.verify.publickey property. The root url is /
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class ECPublicKeyAsPEMTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM EC public key that is included as
* the mp.jwt.verify.publickey property. The root url is /
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class IssValidationFailTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is included as the
* mp.jwt.verify.publickey property. The root url is /
*
*
* @return the base base web application archive
* @throws Exception
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class IssValidationTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is included as the
* mp.jwt.verify.publickey property. The root url is /
*
*
* @return the base base web application archive
* @throws Exception
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class PublicKeyAsBase64JWKTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded JWKS public key that is included as the
* mp.jwt.verify.publickey property. The root url is /jwks
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class PublicKeyAsFileLocationURLTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is referenced via
* the mp.jwt.verify.publickey.location as a URL resource property. The root url is /pem
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class PublicKeyAsJWKLocationTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is referenced via
* the mp.jwt.verify.publickey.location as an embedded resource property. The root url is /jwks
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class PublicKeyAsJWKLocationURLTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes a JWKS endpoint that is referenced via the
* mp.jwt.verify.publickey.location as a URL resource property. The root url is /jwks
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class PublicKeyAsJWKSLocationTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is referenced via
* the mp.jwt.verify.publickey.location as an embedded resource property. The root url is /jwks
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class PublicKeyAsJWKSTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded JWKS public key that is included as the
* mp.jwt.verify.publickey property. The root url is /jwks
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class PublicKeyAsJWKTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded JWKS public key that is included as the
* mp.jwt.verify.publickey property. The root url is /jwks
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class PublicKeyAsPEMLocationTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is included as the
* mp.jwt.verify.publickey property. The root url is /
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class PublicKeyAsPEMLocationURLTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded JWK public key that is referenced via
* the mp.jwt.verify.publickey.location as a URL resource property. The root url is /pem
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class PublicKeyAsPEMTest extends Arquillian {
/**
* Create a CDI aware base web application archive that includes an embedded PEM public key that is included as the
* mp.jwt.verify.publickey property. The root url is /
*
*
* @return the base base web application archive
* @throws IOException
* - on resource failure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private void init() {

/**
* Verify that the injected key is a PEM RSA public key
*
*
* @return json object for test result
*/
@GET
Expand Down Expand Up @@ -198,7 +198,7 @@ public JsonObject verifyKeyLocationAsPEMResource() {

/**
* Check the location exists and is a URL whose contents are valid PEM public key
*
*
* @return result of validation test
*/
@GET
Expand Down Expand Up @@ -249,7 +249,7 @@ public JsonObject verifyKeyLocationAsPEMUrl() {

/**
* Verify that the injected key is a JWK public key
*
*
* @return json object for test result
*/
@GET
Expand Down Expand Up @@ -280,7 +280,7 @@ public JsonObject verifyKeyAsJWK(@QueryParam("kid") String kid) {

/**
* Verify that the injected key is a base64 encoded JWK public key
*
*
* @return json object for test result
*/
@GET
Expand Down Expand Up @@ -315,7 +315,7 @@ public JsonObject verifyKeyAsBase64JWK(@QueryParam("kid") String kid) {

/**
* Verify that the injected key is a JWKS public key
*
*
* @return json object for test result
*/
@GET
Expand Down Expand Up @@ -422,7 +422,7 @@ public JsonObject verifyKeyLocationAsJWKSResource(@QueryParam("kid") String kid)

/**
* Check the location exists and is a URL whose contents are valid JWKS public key
*
*
* @param kid
* - expected kid of JWKS
* @return result of validation test
Expand Down Expand Up @@ -480,7 +480,7 @@ public JsonObject verifyKeyLocationAsJWKSUrl(@QueryParam("kid") String kid) {
}
/**
* Check a token with an iss matches the mp.jwt.verify.issuer value
*
*
* @return result of validation test
*/
@GET
Expand Down Expand Up @@ -516,7 +516,7 @@ public JsonObject verifyIssIsOk() {

/**
* An endpoint that returns the contents of the bundled /publicKey4k.pem key
*
*
* @return the /publicKey4k.pem classpath resource contents a PEM string
*/
@GET
Expand All @@ -528,7 +528,7 @@ public String publicKey4k() throws IOException {
}
/**
* An endpoint that converts the bundled /publicKey4k.pem key in the corresponding JWKS format
*
*
* @param kid
* - the kid to use in the JWKS
* @return the /publicKey4k.pem classpath resource contents a JWKS object
Expand Down Expand Up @@ -575,7 +575,7 @@ public JsonObject publicKey4kAsJWKS(@QueryParam("kid") String kid) throws Except

/**
* Verify a JWKS object string against the expected values used by the tck
*
*
* @param jwksJson
* - JSON string for JWKS
* @param kid
Expand Down
Loading

0 comments on commit e9ed476

Please sign in to comment.