|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.jnt.JavaNetRealm
public class JavaNetRealm
Cached authentication for java.net users.
A directory on a disk is used to cache users and their passwords.
Constructor Summary | |
---|---|
JavaNetRealm(File root)
|
Method Summary | |
---|---|
boolean |
authenticate(String userName,
String password)
Authenticates the user. |
List<String> |
getAll()
Gets all the users known thus far. |
static String |
getDigestOf(InputStream source)
Computes MD5 digest of the given input stream. |
static String |
getDigestOf(String text)
|
static String |
toHexString(byte[] bytes)
|
static String |
toHexString(byte[] data,
int start,
int len)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaNetRealm(File root)
Method Detail |
---|
public List<String> getAll()
public boolean authenticate(String userName, String password) throws IOException
IOException
public static String getDigestOf(InputStream source) throws IOException
source
- The stream will be closed by this method at the end of this method.
IOException
public static String getDigestOf(String text)
public static String toHexString(byte[] data, int start, int len)
public static String toHexString(byte[] bytes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |