1 19 20 package com.sslexplorer.security; 21 22 23 24 34 public class AccountLockedException extends Exception { 35 36 private boolean disabled; 37 private long timeLeft; 38 private String username; 39 40 48 public AccountLockedException(String username, String msg, boolean disabled, long timeLeft) { 49 super(msg); 50 this.username = username; 51 this.disabled = disabled; 52 this.timeLeft = timeLeft; 53 } 54 55 60 public boolean isDisabled() { 61 return disabled; 62 } 63 64 70 public long getTimeLeft() { 71 return timeLeft; 72 } 73 74 79 public String getUsername() { 80 return username; 81 } 82 83 } | Popular Tags |