public boolean equals()

in policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java [280:345]


        public boolean equals(Object object) {
            if (object == this) {
                return true;
            }

            if (!(object instanceof AlgorithmSuiteType)) {
                return false;
            }

            AlgorithmSuiteType that = (AlgorithmSuiteType)object;
            if (name != null && !name.equals(that.name)
                || name == null && that.name != null) {
                return false;
            }
            if (digest != null && !digest.equals(that.digest)
                || digest == null && that.digest != null) {
                return false;
            }
            if (encryption != null && !encryption.equals(that.encryption)
                || encryption == null && that.encryption != null) {
                return false;
            }
            if (symmetricKeyWrap != null && !symmetricKeyWrap.equals(that.symmetricKeyWrap)
                || symmetricKeyWrap == null && that.symmetricKeyWrap != null) {
                return false;
            }
            if (asymmetricKeyWrap != null && !asymmetricKeyWrap.equals(that.asymmetricKeyWrap)
                || asymmetricKeyWrap == null && that.asymmetricKeyWrap != null) {
                return false;
            }
            if (encryptionKeyDerivation != null && !encryptionKeyDerivation.equals(that.encryptionKeyDerivation)
                || encryptionKeyDerivation == null && that.encryptionKeyDerivation != null) {
                return false;
            }
            if (signatureKeyDerivation != null && !signatureKeyDerivation.equals(that.signatureKeyDerivation)
                || signatureKeyDerivation == null && that.signatureKeyDerivation != null) {
                return false;
            }
            if (symmetricSignature != null && !symmetricSignature.equals(that.symmetricSignature)
                || symmetricSignature == null && that.symmetricSignature != null) {
                return false;
            }
            if (asymmetricSignature != null && !asymmetricSignature.equals(that.asymmetricSignature)
                || asymmetricSignature == null && that.asymmetricSignature != null) {
                return false;
            }
            if (ns != null && !ns.equals(that.ns)
                || ns == null && that.ns != null) {
                return false;
            }
            if (mgfAlgo != null && !mgfAlgo.equals(that.mgfAlgo)
                || mgfAlgo == null && that.mgfAlgo != null) {
                return false;
            }
            if (encryptionDigest != null && !encryptionDigest.equals(that.encryptionDigest)
                || encryptionDigest == null && that.encryptionDigest != null) {
                return false;
            }

            return !(encryptionDerivedKeyLength != that.encryptionDerivedKeyLength
                || signatureDerivedKeyLength != that.signatureDerivedKeyLength
                || minimumSymmetricKeyLength != that.minimumSymmetricKeyLength
                || maximumSymmetricKeyLength != that.maximumSymmetricKeyLength
                || minimumAsymmetricKeyLength != that.minimumAsymmetricKeyLength
                || maximumAsymmetricKeyLength != that.maximumAsymmetricKeyLength);
        }