Class Keys.BuilderBase.KeysImpl

java.lang.Object
io.helidon.common.pki.Keys.BuilderBase.KeysImpl
All Implemented Interfaces:
Prototype.Api, Keys
Enclosing class:
Keys.BuilderBase<BUILDER extends Keys.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Keys>

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

    • KeysImpl

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

    • keystore

      public Optional<KeystoreKeys> keystore()
      Description copied from interface: Keys
      Configure keys from a keystore. Once the config object is built, this option will ALWAYS be empty. All keys from the keystore will be populated to Keys.privateKey(), Keys.publicKey(), Keys.publicCert() etc.
      Specified by:
      keystore in interface Keys
      Returns:
      keystore configuration
    • pem

      public Optional<PemKeys> pem()
      Description copied from interface: Keys
      Configure keys from pem file(s). Once the config object is built, this option will ALWAYS be empty. All keys from the keystore will be populated to Keys.privateKey(), Keys.publicKey(), Keys.publicCert() etc.
      Specified by:
      pem in interface Keys
      Returns:
      pem based definition
    • publicKey

      public Optional<PublicKey> publicKey()
      Description copied from interface: Keys
      The public key of this config if configured.
      Specified by:
      publicKey in interface Keys
      Returns:
      the public key of this config or empty if not configured
    • privateKey

      public Optional<PrivateKey> privateKey()
      Description copied from interface: Keys
      The private key of this config if configured.
      Specified by:
      privateKey in interface Keys
      Returns:
      the private key of this config or empty if not configured
    • publicCert

      public Optional<X509Certificate> publicCert()
      Description copied from interface: Keys
      The public X.509 Certificate if configured.
      Specified by:
      publicCert in interface Keys
      Returns:
      the public certificate of this config or empty if not configured
    • certChain

      public List<X509Certificate> certChain()
      Description copied from interface: Keys
      The X.509 Certificate Chain.
      Specified by:
      certChain in interface Keys
      Returns:
      the certificate chain or empty list if not configured
    • certs

      public List<X509Certificate> certs()
      Description copied from interface: Keys
      The X.509 Certificates.
      Specified by:
      certs in interface Keys
      Returns:
      the certificates configured or empty list if none configured
    • 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