|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.larsan.norna.service.user.Indirection
|
+--net.larsan.urd.service.user.CRAM_MD5_Indirection
A CRAM MD5 (rfc 2195) indirection. This indirection taks one option, namely the 'TEXT' option which should be set to the non-secret text of the MD HMAC.
The input credentials given to this indirection should be in their HEX encoded form.
The ID of this indirection is "CRAM-MD5"
An example of use:
CRAM_MD5_Inndirection ind = new CRAM_MD5_Indirection();
Map map = new HashMap();
map.put("TEXT", "Hi There");
ind.setOptions(map);
char[] pass = // .. convert hex key "0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"
char[] input = "9294727a3638bb1c13f48ef8158bfc9d".toCharArray();
ind.matches(pass, input);
This indirection only works on passwords and texts in ASCII.
| Field Summary |
| Fields inherited from class net.larsan.norna.service.user.Indirection |
credentials, options |
| Constructor Summary | |
CRAM_MD5_Indirection()
|
|
| Method Summary | |
java.lang.String |
getID()
Get indirection id. |
boolean |
matches(char[] pass)
Check if a given credential input matches a password according to the current indirection. |
void |
setOptions(java.util.Map map)
Set options for this indirection to use. |
| Methods inherited from class net.larsan.norna.service.user.Indirection |
clearCredentials, setCredentials |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CRAM_MD5_Indirection()
| Method Detail |
public void setOptions(java.util.Map map)
Indirection
setOptions in class Indirectionmap - Indirection optionspublic boolean matches(char[] pass)
Indirection
matches in class Indirectionpass - Clear-text password
public java.lang.String getID()
Indirection
getID in class Indirection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||