public final class JFPKey extends Object implements Serializable, Comparable<JFPKey>
Constructor and Description |
---|
JFPKey(String in_actual)
Construct a key, raising
JFPExceptionAuthentication if the key is
not valid according to validKey(String) . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JFPKey o) |
boolean |
equals(Object obj) |
String |
getActual() |
int |
hashCode() |
String |
toString() |
static boolean |
validKey(String key) |
public JFPKey(String in_actual) throws JFPExceptionAuthentication
JFPExceptionAuthentication
if the key is
not valid according to validKey(String)
.in_actual
- The actual key.JFPExceptionAuthentication
- On invalid keys.public static boolean validKey(String key)
key
- The key.true
iff matches(key, "[a-z0-9]+")
.public int compareTo(@Nullable JFPKey o)
compareTo
in interface Comparable<JFPKey>
public String getActual()
Copyright © 2015 <code@io7m.com> http://io7m.com