java.lang.Object
io.helidon.common.pki.PemKeys.BuilderBase.PemKeysImpl
- All Implemented Interfaces:
Prototype.Api
,PemKeys
- Enclosing class:
PemKeys.BuilderBase<BUILDER extends PemKeys.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends PemKeys>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.pki.PemKeys
PemKeys.Builder, PemKeys.BuilderBase<BUILDER extends PemKeys.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends PemKeys> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PemKeysImpl
(PemKeys.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionLoad certificate chain from PEM resource.Read one or more certificates in PEM format from a resource definition.boolean
int
hashCode()
key()
Read a private key from PEM format from a resource definition.Optional
<char[]> Passphrase for private key.Read a public key from PEM format from a resource definition.toString()
-
Constructor Details
-
PemKeysImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
key
Description copied from interface:PemKeys
Read a private key from PEM format from a resource definition. -
keyPassphrase
Description copied from interface:PemKeys
Passphrase for private key. If the key is encrypted (and in PEM PKCS#8 format), this passphrase will be used to decrypt it.- Specified by:
keyPassphrase
in interfacePemKeys
- Returns:
- passphrase used to encrypt the private key
-
publicKey
Description copied from interface:PemKeys
Read a public key from PEM format from a resource definition. -
certChain
Description copied from interface:PemKeys
Load certificate chain from PEM resource. -
certificates
Description copied from interface:PemKeys
Read one or more certificates in PEM format from a resource definition. Used eg: in a trust store.- Specified by:
certificates
in interfacePemKeys
- Returns:
- key resource (file, classpath, URL etc.)
-
toString
-
equals
-
hashCode
public int hashCode()
-