Class TunnelPhaseOneDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • isCustomPhaseOneConfig

        public TunnelPhaseOneDetails.Builder isCustomPhaseOneConfig​(Boolean isCustomPhaseOneConfig)
        Indicates whether custom phase one configuration is enabled.

        If this option is not enabled, default settings are proposed.

        Parameters:
        isCustomPhaseOneConfig - the value to set
        Returns:
        this builder
      • lifetime

        public TunnelPhaseOneDetails.Builder lifetime​(Long lifetime)
        The total configured lifetime of the IKE security association.
        Parameters:
        lifetime - the value to set
        Returns:
        this builder
      • remainingLifetime

        public TunnelPhaseOneDetails.Builder remainingLifetime​(Long remainingLifetime)
        The remaining lifetime before the key is refreshed.
        Parameters:
        remainingLifetime - the value to set
        Returns:
        this builder
      • customAuthenticationAlgorithm

        public TunnelPhaseOneDetails.Builder customAuthenticationAlgorithm​(String customAuthenticationAlgorithm)
        The proposed custom authentication algorithm.
        Parameters:
        customAuthenticationAlgorithm - the value to set
        Returns:
        this builder
      • negotiatedAuthenticationAlgorithm

        public TunnelPhaseOneDetails.Builder negotiatedAuthenticationAlgorithm​(String negotiatedAuthenticationAlgorithm)
        The negotiated authentication algorithm.
        Parameters:
        negotiatedAuthenticationAlgorithm - the value to set
        Returns:
        this builder
      • customEncryptionAlgorithm

        public TunnelPhaseOneDetails.Builder customEncryptionAlgorithm​(String customEncryptionAlgorithm)
        The proposed custom encryption algorithm.
        Parameters:
        customEncryptionAlgorithm - the value to set
        Returns:
        this builder
      • negotiatedEncryptionAlgorithm

        public TunnelPhaseOneDetails.Builder negotiatedEncryptionAlgorithm​(String negotiatedEncryptionAlgorithm)
        The negotiated encryption algorithm.
        Parameters:
        negotiatedEncryptionAlgorithm - the value to set
        Returns:
        this builder
      • customDhGroup

        public TunnelPhaseOneDetails.Builder customDhGroup​(String customDhGroup)
        The proposed custom Diffie-Hellman group.
        Parameters:
        customDhGroup - the value to set
        Returns:
        this builder
      • negotiatedDhGroup

        public TunnelPhaseOneDetails.Builder negotiatedDhGroup​(String negotiatedDhGroup)
        The negotiated Diffie-Hellman group.
        Parameters:
        negotiatedDhGroup - the value to set
        Returns:
        this builder
      • isIkeEstablished

        public TunnelPhaseOneDetails.Builder isIkeEstablished​(Boolean isIkeEstablished)
        Indicates whether IKE phase one is established.
        Parameters:
        isIkeEstablished - the value to set
        Returns:
        this builder
      • remainingLifetimeLastRetrieved

        public TunnelPhaseOneDetails.Builder remainingLifetimeLastRetrieved​(Date remainingLifetimeLastRetrieved)
        The date and time we retrieved the remaining lifetime, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        remainingLifetimeLastRetrieved - the value to set
        Returns:
        this builder