+ Password is set as a system property. + The password is prompted for and read from standard input + A program is run to get the password.Passwords that begin with OBF: are de obfuscated. Passwords can be obfuscated by run org.eclipse.util.Password as a main class. Obfuscated password are required if a system needs to recover the full password (eg. so that it may be passed to another system). They are not secure, but prevent casual observation.
Passwords that begin with CRYPT: are oneway encrypted with UnixCrypt. The real password cannot be retrieved, but comparisons can be made to other passwords. A Crypt can be generated by running org.eclipse.util.UnixCrypt as a main class, passing password and then the username. Checksum passwords are a secure(ish) way to store passwords that only need to be checked rather than recovered. Note that it is not strong security - specially if simple passwords are used.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | check(Object
The credential to check against. This may either be another Credential object, a Password object or a String which is interpreted by this
credential. credentials)Implements abstract org. |
| public static String | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public static Password | Returns: PasswordThe realm name for the password, used as a SystemProperty
name. realm, String The default password. dft, String The default to use if prompting for the password. promptDft)Get a password. |
| public int | |
| public static void | |
| public static String | |
| public String | |
| public String |
| __OBFUSCATE | back to summary |
|---|---|
| public static final String __OBFUSCATE | |
| _pw | back to summary |
|---|---|
| private String _pw | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| Password | back to summary |
|---|---|
| public Password(String password) Constructor.
| |
| check | back to summary |
|---|---|
| public boolean check(Object credentials) Implements abstract org. Doc from org. Check a credential
| |
| deobfuscate | back to summary |
|---|---|
| public static String deobfuscate(String s) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getPassword | back to summary |
|---|---|
| public static Password getPassword(String realm, String dft, String promptDft) Get a password. A password is obtained by trying
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException | |
| obfuscate | back to summary |
|---|---|
| public static String obfuscate(String s) | |
| toStarString | back to summary |
|---|---|
| public String toStarString() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |