1 19 20 package com.sslexplorer.security; 21 22 30 public class PasswordChangeRequiredException 31 extends Exception { 32 33 public final static int PASSWORD_EXPIRED = 0; 34 public final static int PASSWORD_DOES_NOT_CONFORM_TO_POLICY = 1; 35 36 private int reason; 37 38 public PasswordChangeRequiredException(int reason) { 39 this(reason, "Password expired."); 40 } 41 42 public PasswordChangeRequiredException(int reason, String message) { 43 super(message); 44 this.reason = reason; 45 } 46 47 public int getReason() { 48 return reason; 49 } 50 51 } | Popular Tags |