package com.l7tech.identity.ldap;

import com.l7tech.util.XmlSafe;
import java.io.Serializable;

@XmlSafe
public class PasswdStrategy implements Serializable {
   private int val;
   public static final PasswdStrategy CLEAR = new PasswdStrategy(0);
   public static final PasswdStrategy HASHED = new PasswdStrategy(1);
   static final long serialVersionUID = -731418888473837917L;

   @XmlSafe
   @Override
   public boolean equals(Object var1) {
      return !(var1 instanceof PasswdStrategy var2) ? false : var2.val == this.val;
   }

   @XmlSafe
   @Override
   public int hashCode() {
      return this.val;
   }

   @XmlSafe
   private PasswdStrategy(int var1) {
      this.val = var1;
   }

   @XmlSafe
   public PasswdStrategy() {
   }

   @XmlSafe
   public int getVal() {
      return this.val;
   }

   @XmlSafe
   public void setVal(int var1) {
      this.val = var1;
   }
}
