Package com.codingchili.core.security
Class TrustAndKeyProvider
java.lang.Object
com.codingchili.core.security.TrustAndKeyProvider
Common wrapper class for #
SelfSignedCertificate and #JksOptions as they
both contain trustOptions and keyCertOptions but these methods are not contained in
a common interface.-
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.net.KeyCertOptionsstatic TrustAndKeyProviderof(KeyStoreReference jks)static TrustAndKeyProviderof(TestCertificate self)io.vertx.core.net.TrustOptions
-
Method Details
-
getPrivateKey
- Returns:
- the private key of this keystore.
-
getPublicKey
- Returns:
- the public key of this keystore.
-
of
- Parameters:
self- a self signed certificate to get trust and keycert options from.- Returns:
- a new TrustAndKeyProvider instance.
-
of
- Parameters:
jks- a java keystore to get trust and keycert options from.- Returns:
- a new TrustAndKeyProvider instance.
-
trustOptions
public io.vertx.core.net.TrustOptions trustOptions()- Returns:
- trust options for the wrapped provider implementation.
-
keyCertOptions
public io.vertx.core.net.KeyCertOptions keyCertOptions()- Returns:
- key and cert options for the wrapped provider implementation.
-