Workplace Widget 5.10.23
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.itac.util.text;
|
||||
public final class Password {
|
||||
public enum Encryption { NONE }
|
||||
private final String value;
|
||||
public Password(Encryption encryption, String plaintext){
|
||||
if(encryption!=Encryption.NONE)throw new IllegalArgumentException();
|
||||
value=plaintext;
|
||||
}
|
||||
public boolean matches(String check){return value.equals(check);}
|
||||
}
|
||||
Reference in New Issue
Block a user