|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.karaf.jaas.modules.encryption.BasicEncryption
public class BasicEncryption
| Constructor Summary | |
|---|---|
BasicEncryption(Map<String,String> params)
|
|
| Method Summary | |
|---|---|
static String |
base64Encode(byte[] data)
encode the input data producing a base 64 encoded byte array. |
static int |
base64Encode(byte[] data,
int off,
int length,
OutputStream out)
encode the input data producing a base 64 output stream. |
boolean |
checkPassword(String provided,
String real)
Check password. |
String |
encryptPassword(String password)
Encrypt a password. |
static String |
hexEncode(byte[] in)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicEncryption(Map<String,String> params)
| Method Detail |
|---|
public String encryptPassword(String password)
EncryptionEncrypt a password.
encryptPassword in interface Encryptionpassword - the password in plain format.
public boolean checkPassword(String provided,
String real)
EncryptionCheck password.
checkPassword in interface Encryptionprovided - password provided in plain format.real - the encrypted format to compare with.
public static String hexEncode(byte[] in)
public static String base64Encode(byte[] data)
public static int base64Encode(byte[] data,
int off,
int length,
OutputStream out)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||