Class TunnelPhaseTwoDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • isCustomPhaseTwoConfig

        public TunnelPhaseTwoDetails.Builder isCustomPhaseTwoConfig​(Boolean isCustomPhaseTwoConfig)
        Indicates whether custom phase two configuration is enabled.

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

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

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

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

        public TunnelPhaseTwoDetails.Builder customAuthenticationAlgorithm​(String customAuthenticationAlgorithm)
        Phase two authentication algorithm proposed during tunnel negotiation.
        Parameters:
        customAuthenticationAlgorithm - the value to set
        Returns:
        this builder
      • negotiatedAuthenticationAlgorithm

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

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

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

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

        public TunnelPhaseTwoDetails.Builder isEspEstablished​(Boolean isEspEstablished)
        Indicates that ESP phase two is established.
        Parameters:
        isEspEstablished - the value to set
        Returns:
        this builder
      • isPfsEnabled

        public TunnelPhaseTwoDetails.Builder isPfsEnabled​(Boolean isPfsEnabled)
        Indicates that PFS (perfect forward secrecy) is enabled.
        Parameters:
        isPfsEnabled - the value to set
        Returns:
        this builder
      • remainingLifetimeLastRetrieved

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

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

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