Class PemKeys.BuilderBase.PemKeysImpl

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>

protected static class PemKeys.BuilderBase.PemKeysImpl extends Object implements PemKeys
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • PemKeysImpl

      protected PemKeysImpl(PemKeys.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • key

      public Optional<Resource> key()
      Description copied from interface: PemKeys
      Read a private key from PEM format from a resource definition.
      Specified by:
      key in interface PemKeys
      Returns:
      key resource (file, classpath, URL etc.)
    • keyPassphrase

      public Optional<char[]> 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 interface PemKeys
      Returns:
      passphrase used to encrypt the private key
    • publicKey

      public Optional<Resource> publicKey()
      Description copied from interface: PemKeys
      Read a public key from PEM format from a resource definition.
      Specified by:
      publicKey in interface PemKeys
      Returns:
      public key resource (file, classpath, URL etc.)
    • certChain

      public Optional<Resource> certChain()
      Description copied from interface: PemKeys
      Load certificate chain from PEM resource.
      Specified by:
      certChain in interface PemKeys
      Returns:
      resource (e.g. classpath, file path, URL etc.)
    • certificates

      public Optional<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 interface PemKeys
      Returns:
      key resource (file, classpath, URL etc.)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object