Class KeyStoreInfo.Builder

  • Enclosing class:
    KeyStoreInfo

    public static final class KeyStoreInfo.Builder
    extends java.lang.Object
    Builder class for KeyStoreInfo.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()
      Constructor with parameters for the required properties of KeyStoreInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KeyStoreInfo build()  
      KeyStoreInfo.Builder setKeystore​(java.lang.String keystore)
      A location of the keystor file which stores private key and identity certificates that will be presented to both parties (server or client) for verification.
      KeyStoreInfo.Builder setKeystoreAlias​(java.lang.String keystoreAlias)
      Its an alias specified when an entity is added to the keystore.
      KeyStoreInfo.Builder setKeystorePhrase​(java.lang.String keystorePhrase)
      A location of the key store pass phrase file.
      KeyStoreInfo.Builder setTruststore​(java.lang.String truststore)
      A location of the trust store file which stores the certificate from CA that verify the certificate presented by the server in SSL connection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of KeyStoreInfo.
    • Method Detail

      • setKeystore

        public KeyStoreInfo.Builder setKeystore​(java.lang.String keystore)
        A location of the keystor file which stores private key and identity certificates that will be presented to both parties (server or client) for verification.
        Parameters:
        keystore - New value for the property.
      • setKeystoreAlias

        public KeyStoreInfo.Builder setKeystoreAlias​(java.lang.String keystoreAlias)
        Its an alias specified when an entity is added to the keystore.
        Parameters:
        keystoreAlias - New value for the property.
      • setKeystorePhrase

        public KeyStoreInfo.Builder setKeystorePhrase​(java.lang.String keystorePhrase)
        A location of the key store pass phrase file.
        Parameters:
        keystorePhrase - New value for the property.
      • setTruststore

        public KeyStoreInfo.Builder setTruststore​(java.lang.String truststore)
        A location of the trust store file which stores the certificate from CA that verify the certificate presented by the server in SSL connection.
        Parameters:
        truststore - New value for the property.