com.dyuproject.openid
Class SessionType

java.lang.Object
  extended by com.dyuproject.openid.SessionType

public final class SessionType
extends Object

The type of session for an association.

Author:
David Yu

Field Summary
static SessionType HMAC_SHA1
           
static SessionType HMAC_SHA256
           
 
Method Summary
 String getAlgorithm()
           
 String getAssociationType()
           
static SessionType getDefault()
           
 String getDigestType()
           
 String getSessionType()
           
 byte[] getSignature(byte[] secretKey, byte[] toSign)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HMAC_SHA1

public static final SessionType HMAC_SHA1

HMAC_SHA256

public static final SessionType HMAC_SHA256
Method Detail

getDefault

public static SessionType getDefault()

getSessionType

public String getSessionType()

getAssociationType

public String getAssociationType()

getDigestType

public String getDigestType()

getAlgorithm

public String getAlgorithm()

getSignature

public byte[] getSignature(byte[] secretKey,
                           byte[] toSign)
                    throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.