Class TunnelPhaseTwoDetails


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20160918")
    public final class TunnelPhaseTwoDetails
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    IPsec tunnel detail information specific to phase two.
    Note: Objects should always be created or deserialized using the TunnelPhaseTwoDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the TunnelPhaseTwoDetails.Builder, which maintain a set of all explicitly set fields called TunnelPhaseTwoDetails.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Constructor Detail

      • TunnelPhaseTwoDetails

        @Deprecated
        @ConstructorProperties({"isCustomPhaseTwoConfig","lifetime","remainingLifetime","customAuthenticationAlgorithm","negotiatedAuthenticationAlgorithm","customEncryptionAlgorithm","negotiatedEncryptionAlgorithm","dhGroup","negotiatedDhGroup","isEspEstablished","isPfsEnabled","remainingLifetimeLastRetrieved"})
        public TunnelPhaseTwoDetails​(Boolean isCustomPhaseTwoConfig,
                                     Long lifetime,
                                     Long remainingLifetime,
                                     String customAuthenticationAlgorithm,
                                     String negotiatedAuthenticationAlgorithm,
                                     String customEncryptionAlgorithm,
                                     String negotiatedEncryptionAlgorithm,
                                     String dhGroup,
                                     String negotiatedDhGroup,
                                     Boolean isEspEstablished,
                                     Boolean isPfsEnabled,
                                     Date remainingLifetimeLastRetrieved)
        Deprecated.
    • Method Detail

      • getIsCustomPhaseTwoConfig

        public Boolean getIsCustomPhaseTwoConfig()
        Indicates whether custom phase two configuration is enabled.

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

        Returns:
        the value
      • getLifetime

        public Long getLifetime()
        The total configured lifetime of the IKE security association.
        Returns:
        the value
      • getRemainingLifetime

        public Long getRemainingLifetime()
        The remaining lifetime before the key is refreshed.
        Returns:
        the value
      • getCustomAuthenticationAlgorithm

        public String getCustomAuthenticationAlgorithm()
        Phase two authentication algorithm proposed during tunnel negotiation.
        Returns:
        the value
      • getNegotiatedAuthenticationAlgorithm

        public String getNegotiatedAuthenticationAlgorithm()
        The negotiated phase two authentication algorithm.
        Returns:
        the value
      • getCustomEncryptionAlgorithm

        public String getCustomEncryptionAlgorithm()
        The proposed custom phase two encryption algorithm.
        Returns:
        the value
      • getNegotiatedEncryptionAlgorithm

        public String getNegotiatedEncryptionAlgorithm()
        The negotiated encryption algorithm.
        Returns:
        the value
      • getDhGroup

        public String getDhGroup()
        The proposed Diffie-Hellman group.
        Returns:
        the value
      • getNegotiatedDhGroup

        public String getNegotiatedDhGroup()
        The negotiated Diffie-Hellman group.
        Returns:
        the value
      • getIsEspEstablished

        public Boolean getIsEspEstablished()
        Indicates that ESP phase two is established.
        Returns:
        the value
      • getIsPfsEnabled

        public Boolean getIsPfsEnabled()
        Indicates that PFS (perfect forward secrecy) is enabled.
        Returns:
        the value
      • getRemainingLifetimeLastRetrieved

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

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

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel