1 package authentication
;
3 import java
.io
.Serializable
;
5 /** Authentication credential field.
7 * This class corresponds to one credential value that should be
8 * exchanged between the client and server in order to authenticate the
9 * client. Credentials containing secret values, such as passwords, can
12 public class Credential
implements Serializable
{
14 private static final long serialVersionUID
= -1425162133341080154L;
15 private String label
, value
;
16 private boolean hidden
;
18 /** Create field with given label and hidden attribute.
20 * @param label The field label.
21 * @param hidden Whether the field should be hidden.
23 public Credential(String label
, boolean hidden
)
31 /** Dummy constructor to silence compiler. */
37 /** Is field value hidden?
39 * @return Whether the field is hidden.
41 public boolean isHideValue()
46 /** Change hidden attribute of a field value.
48 * @param hidden The new state of the hidden attribute.
50 public void setHideValue(boolean hidden
)
57 * @return The field label.
59 public String
getLabel()
66 * @param label The field label.
68 public void setLabel(String label
)
75 * @return The field value.
77 public String
getValue()
84 * @param value The new field value.
86 public void setValue(String value
)