/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Path != null)
         {
             hashCode = hashCode * 59 + Path.GetHashCode();
         }
         if (JaasControlFlag != null)
         {
             hashCode = hashCode * 59 + JaasControlFlag.GetHashCode();
         }
         if (JaasRealmName != null)
         {
             hashCode = hashCode * 59 + JaasRealmName.GetHashCode();
         }
         if (JaasRanking != null)
         {
             hashCode = hashCode * 59 + JaasRanking.GetHashCode();
         }
         if (OauthOfflineValidation != null)
         {
             hashCode = hashCode * 59 + OauthOfflineValidation.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (JaasRanking != null)
         {
             hashCode = hashCode * 59 + JaasRanking.GetHashCode();
         }
         if (JaasControlFlag != null)
         {
             hashCode = hashCode * 59 + JaasControlFlag.GetHashCode();
         }
         if (JaasRealmName != null)
         {
             hashCode = hashCode * 59 + JaasRealmName.GetHashCode();
         }
         if (IdpName != null)
         {
             hashCode = hashCode * 59 + IdpName.GetHashCode();
         }
         if (SyncHandlerName != null)
         {
             hashCode = hashCode * 59 + SyncHandlerName.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Path != null)
         {
             hashCode = hashCode * 59 + Path.GetHashCode();
         }
         if (ServiceRanking != null)
         {
             hashCode = hashCode * 59 + ServiceRanking.GetHashCode();
         }
         if (JaasControlFlag != null)
         {
             hashCode = hashCode * 59 + JaasControlFlag.GetHashCode();
         }
         if (JaasRealmName != null)
         {
             hashCode = hashCode * 59 + JaasRealmName.GetHashCode();
         }
         if (JaasRanking != null)
         {
             hashCode = hashCode * 59 + JaasRanking.GetHashCode();
         }
         if (Headers != null)
         {
             hashCode = hashCode * 59 + Headers.GetHashCode();
         }
         if (Cookies != null)
         {
             hashCode = hashCode * 59 + Cookies.GetHashCode();
         }
         if (Parameters != null)
         {
             hashCode = hashCode * 59 + Parameters.GetHashCode();
         }
         if (Usermap != null)
         {
             hashCode = hashCode * 59 + Usermap.GetHashCode();
         }
         if (Format != null)
         {
             hashCode = hashCode * 59 + Format.GetHashCode();
         }
         if (TrustedCredentialsAttribute != null)
         {
             hashCode = hashCode * 59 + TrustedCredentialsAttribute.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if ComAdobeGraniteOauthServerAuthImplOAuth2ServerAuthenticationHanProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteOauthServerAuthImplOAuth2ServerAuthenticationHanProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteOauthServerAuthImplOAuth2ServerAuthenticationHanProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Path == other.Path ||
                     Path != null &&
                     Path.Equals(other.Path)
                     ) &&
                 (
                     JaasControlFlag == other.JaasControlFlag ||
                     JaasControlFlag != null &&
                     JaasControlFlag.Equals(other.JaasControlFlag)
                 ) &&
                 (
                     JaasRealmName == other.JaasRealmName ||
                     JaasRealmName != null &&
                     JaasRealmName.Equals(other.JaasRealmName)
                 ) &&
                 (
                     JaasRanking == other.JaasRanking ||
                     JaasRanking != null &&
                     JaasRanking.Equals(other.JaasRanking)
                 ) &&
                 (
                     OauthOfflineValidation == other.OauthOfflineValidation ||
                     OauthOfflineValidation != null &&
                     OauthOfflineValidation.Equals(other.OauthOfflineValidation)
                 ));
        }
        /// <summary>
        /// Returns true if OrgApacheJackrabbitOakSpiSecurityAuthenticationExternalImplExProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheJackrabbitOakSpiSecurityAuthenticationExternalImplExProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheJackrabbitOakSpiSecurityAuthenticationExternalImplExProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     JaasRanking == other.JaasRanking ||
                     JaasRanking != null &&
                     JaasRanking.Equals(other.JaasRanking)
                     ) &&
                 (
                     JaasControlFlag == other.JaasControlFlag ||
                     JaasControlFlag != null &&
                     JaasControlFlag.Equals(other.JaasControlFlag)
                 ) &&
                 (
                     JaasRealmName == other.JaasRealmName ||
                     JaasRealmName != null &&
                     JaasRealmName.Equals(other.JaasRealmName)
                 ) &&
                 (
                     IdpName == other.IdpName ||
                     IdpName != null &&
                     IdpName.Equals(other.IdpName)
                 ) &&
                 (
                     SyncHandlerName == other.SyncHandlerName ||
                     SyncHandlerName != null &&
                     SyncHandlerName.Equals(other.SyncHandlerName)
                 ));
        }
        /// <summary>
        /// Returns true if OrgApacheFelixJaasConfigurationFactoryProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheFelixJaasConfigurationFactoryProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheFelixJaasConfigurationFactoryProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     JaasControlFlag == other.JaasControlFlag ||
                     JaasControlFlag != null &&
                     JaasControlFlag.Equals(other.JaasControlFlag)
                     ) &&
                 (
                     JaasRanking == other.JaasRanking ||
                     JaasRanking != null &&
                     JaasRanking.Equals(other.JaasRanking)
                 ) &&
                 (
                     JaasRealmName == other.JaasRealmName ||
                     JaasRealmName != null &&
                     JaasRealmName.Equals(other.JaasRealmName)
                 ) &&
                 (
                     JaasClassname == other.JaasClassname ||
                     JaasClassname != null &&
                     JaasClassname.Equals(other.JaasClassname)
                 ) &&
                 (
                     JaasOptions == other.JaasOptions ||
                     JaasOptions != null &&
                     JaasOptions.Equals(other.JaasOptions)
                 ));
        }
Esempio n. 7
0
        /// <summary>
        /// Returns true if ComAdobeGraniteAuthSsoImplSsoAuthenticationHandlerProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteAuthSsoImplSsoAuthenticationHandlerProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteAuthSsoImplSsoAuthenticationHandlerProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Path == other.Path ||
                     Path != null &&
                     Path.Equals(other.Path)
                     ) &&
                 (
                     ServiceRanking == other.ServiceRanking ||
                     ServiceRanking != null &&
                     ServiceRanking.Equals(other.ServiceRanking)
                 ) &&
                 (
                     JaasControlFlag == other.JaasControlFlag ||
                     JaasControlFlag != null &&
                     JaasControlFlag.Equals(other.JaasControlFlag)
                 ) &&
                 (
                     JaasRealmName == other.JaasRealmName ||
                     JaasRealmName != null &&
                     JaasRealmName.Equals(other.JaasRealmName)
                 ) &&
                 (
                     JaasRanking == other.JaasRanking ||
                     JaasRanking != null &&
                     JaasRanking.Equals(other.JaasRanking)
                 ) &&
                 (
                     Headers == other.Headers ||
                     Headers != null &&
                     Headers.Equals(other.Headers)
                 ) &&
                 (
                     Cookies == other.Cookies ||
                     Cookies != null &&
                     Cookies.Equals(other.Cookies)
                 ) &&
                 (
                     Parameters == other.Parameters ||
                     Parameters != null &&
                     Parameters.Equals(other.Parameters)
                 ) &&
                 (
                     Usermap == other.Usermap ||
                     Usermap != null &&
                     Usermap.Equals(other.Usermap)
                 ) &&
                 (
                     Format == other.Format ||
                     Format != null &&
                     Format.Equals(other.Format)
                 ) &&
                 (
                     TrustedCredentialsAttribute == other.TrustedCredentialsAttribute ||
                     TrustedCredentialsAttribute != null &&
                     TrustedCredentialsAttribute.Equals(other.TrustedCredentialsAttribute)
                 ));
        }