|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yosokumo.core.Credentials
public class Credentials
Specifies credentials (user id and key) for Yosokumo authentication.
Field Summary | |
---|---|
private byte[] |
key
The key belonging to the user. |
static int |
KEY_LEN
The exact length of a key. |
private java.lang.String |
userId
The user to whom the key belongs. |
Constructor Summary | |
---|---|
Credentials(java.lang.String userId,
byte[] key)
Initializes a newly created Credentials object to
the user id and key given as parameters. |
Method Summary | |
---|---|
byte[] |
getKey()
Return a copy of the user key. |
java.lang.String |
getUserId()
Return the user id. |
static java.lang.String |
keyToString(byte[] key)
Return a string representation of a key. |
java.lang.String |
toString()
Return a string representation of the Credentials . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int KEY_LEN
private java.lang.String userId
private byte[] key
Constructor Detail |
---|
public Credentials(java.lang.String userId, byte[] key) throws ServiceException
Credentials
object to
the user id and key given as parameters.
ServiceException
- if the key length is not correct.Method Detail |
---|
public java.lang.String getUserId()
public byte[] getKey()
public java.lang.String toString()
Credentials
.
toString
in class java.lang.Object
Credentials
.public static java.lang.String keyToString(byte[] key)
key
- the key to convert to a string.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |