forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quarkusio#1213 from stuartwdouglas/ssl
Initial Undertow SSL config
- Loading branch information
Showing
7 changed files
with
104 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
core/runtime/src/main/java/io/quarkus/runtime/configuration/PathConverter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package io.quarkus.runtime.configuration; | ||
|
||
import java.nio.file.Path; | ||
import java.nio.file.Paths; | ||
|
||
import org.eclipse.microprofile.config.spi.Converter; | ||
|
||
public class PathConverter implements Converter<Path> { | ||
@Override | ||
public Path convert(String value) { | ||
return Paths.get(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...ava/io/quarkus/runtime/graal/Target_org_wildfly_security_x500_util_X500PrincipalUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.quarkus.runtime.graal; | ||
|
||
import java.lang.invoke.MethodHandle; | ||
import java.security.Principal; | ||
|
||
import javax.security.auth.x500.X500Principal; | ||
|
||
import org.wildfly.security.x500.util.X500PrincipalUtil; | ||
|
||
import com.oracle.svm.core.annotate.Alias; | ||
import com.oracle.svm.core.annotate.Delete; | ||
import com.oracle.svm.core.annotate.RecomputeFieldValue; | ||
import com.oracle.svm.core.annotate.Substitute; | ||
import com.oracle.svm.core.annotate.TargetClass; | ||
|
||
/** | ||
* | ||
*/ | ||
@TargetClass(X500PrincipalUtil.class) | ||
final class Target_org_wildfly_security_x500_util_X500PrincipalUtil { | ||
@RecomputeFieldValue(kind = RecomputeFieldValue.Kind.Reset) | ||
@Alias | ||
static Class<?> X500_NAME_CLASS; | ||
@Delete | ||
static MethodHandle AS_X500_PRINCIPAL_HANDLE; | ||
|
||
@Substitute | ||
public static X500Principal asX500Principal(Principal principal, boolean convert) { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters