|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.util.Crypt
@PublicAPI(stability=VOLATILE, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class Crypt
UNIX Crypt cipher, ported from the Sun OpenSolaris project.
Constructor Summary | |
---|---|
Crypt()
Constructor. |
Method Summary | |
---|---|
byte[] |
crypt(byte[] pw,
byte[] salt)
Encode the supplied password in unix crypt form with the provided salt. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Crypt()
Method Detail |
---|
public byte[] crypt(byte[] pw, byte[] salt)
pw
- A password to encode.salt
- A salt array of any size, of which only the first
2 bytes will be considered.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |