|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.openid.SessionType
public final class SessionType
The session type of a DiffieHellmanAssociation
.
Field Summary | |
---|---|
static SessionType |
HMAC_SHA1
"DH-SHA1" |
static SessionType |
HMAC_SHA256
"DH-SHA256" |
Method Summary | |
---|---|
String |
getAlgorithm()
Gets the algorithm. |
String |
getAssociationType()
Gets the association type. |
static SessionType |
getDefault()
Gets the default session type HMAC_SHA1 . |
String |
getDigestType()
Gets the digest type. |
String |
getSessionType()
Gets the session type as string. |
byte[] |
getSignature(byte[] secretKey,
byte[] toSign)
Returns the byte array signed by this session type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SessionType HMAC_SHA1
public static final SessionType HMAC_SHA256
Method Detail |
---|
public static SessionType getDefault()
HMAC_SHA1
.
public String getSessionType()
public String getAssociationType()
public String getDigestType()
public String getAlgorithm()
public byte[] getSignature(byte[] secretKey, byte[] toSign) throws NoSuchAlgorithmException, InvalidKeyException
NoSuchAlgorithmException
InvalidKeyException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |