Class KeystoreKeys.BuilderBase.KeystoreKeysImpl

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

protected static class KeystoreKeys.BuilderBase.KeystoreKeysImpl extends Object implements KeystoreKeys
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Field Details

  • Constructor Details

    • KeystoreKeysImpl

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

    • keystore

      public Resource keystore()
      Description copied from interface: KeystoreKeys
      Keystore resource definition.
      Specified by:
      keystore in interface KeystoreKeys
      Returns:
      keystore resource, from file path, classpath, URL etc.
    • type

      public String type()
      Description copied from interface: KeystoreKeys
      Set type of keystore. Defaults to "PKCS12", expected are other keystore types supported by java then can store keys under aliases.
      Specified by:
      type in interface KeystoreKeys
      Returns:
      keystore type to load the key
    • passphrase

      public Optional<char[]> passphrase()
      Description copied from interface: KeystoreKeys
      Pass-phrase of the keystore (supported with JKS and PKCS12 keystores).
      Specified by:
      passphrase in interface KeystoreKeys
      Returns:
      keystore password to use
    • keyAlias

      public Optional<String> keyAlias()
      Description copied from interface: KeystoreKeys
      Alias of the private key in the keystore.
      Specified by:
      keyAlias in interface KeystoreKeys
      Returns:
      alias of the key in the keystore
    • keyPassphrase

      public Optional<char[]> keyPassphrase()
      Description copied from interface: KeystoreKeys
      Pass-phrase of the key in the keystore (used for private keys). This is (by default) the same as keystore passphrase - only configure if it differs from keystore passphrase.
      Specified by:
      keyPassphrase in interface KeystoreKeys
      Returns:
      pass-phrase of the key
    • certAlias

      public Optional<String> certAlias()
      Description copied from interface: KeystoreKeys
      Alias of X.509 certificate of public key. Used to load both the certificate and public key.
      Specified by:
      certAlias in interface KeystoreKeys
      Returns:
      alias under which the certificate is stored in the keystore
    • certChainAlias

      public Optional<String> certChainAlias()
      Description copied from interface: KeystoreKeys
      Alias of an X.509 chain.
      Specified by:
      certChainAlias in interface KeystoreKeys
      Returns:
      alias of certificate chain in the keystore
    • certAliases

      public List<String> certAliases()
      Description copied from interface: KeystoreKeys
      List of aliases used to generate a trusted set of certificates.
      Specified by:
      certAliases in interface KeystoreKeys
      Returns:
      aliases of certificates
    • trustStore

      public boolean trustStore()
      Description copied from interface: KeystoreKeys
      If you want to build a trust store, call this method to add all certificates present in the keystore to certificate list.
      Specified by:
      trustStore in interface KeystoreKeys
      Returns:
      whether this is a trust store
    • 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