com.dyuproject.openid
Interface Association

All Known Implementing Classes:
DiffieHellmanAssociation

public interface Association

Association - associates and verifies whether the openid provider's response tied to the OpenIdUser is authentic.

Author:
David Yu
Date created:
Sep 10, 2008

Field Summary
static String ASSOC_HMAC_SHA1
           
static String ASSOC_HMAC_SHA256
           
static String SESSION_DH_SHA1
           
static String SESSION_DH_SHA256
           
static String SESSION_NO_ENCRYPTION
           
 
Method Summary
 boolean associate(OpenIdUser user, OpenIdContext context)
          Associates the user with his openid provider and stores the association data for future verification.
 boolean verifyAuth(OpenIdUser user, Map<String,String> authRedirect, OpenIdContext context)
          Verifies the authentication response by validating against the previous association data stored from associate(OpenIdUser, OpenIdContext)
 

Field Detail

ASSOC_HMAC_SHA1

static final String ASSOC_HMAC_SHA1
See Also:
Constant Field Values

ASSOC_HMAC_SHA256

static final String ASSOC_HMAC_SHA256
See Also:
Constant Field Values

SESSION_NO_ENCRYPTION

static final String SESSION_NO_ENCRYPTION
See Also:
Constant Field Values

SESSION_DH_SHA1

static final String SESSION_DH_SHA1
See Also:
Constant Field Values

SESSION_DH_SHA256

static final String SESSION_DH_SHA256
See Also:
Constant Field Values
Method Detail

associate

boolean associate(OpenIdUser user,
                  OpenIdContext context)
                  throws Exception
Associates the user with his openid provider and stores the association data for future verification.

Throws:
Exception

verifyAuth

boolean verifyAuth(OpenIdUser user,
                   Map<String,String> authRedirect,
                   OpenIdContext context)
                   throws Exception
Verifies the authentication response by validating against the previous association data stored from associate(OpenIdUser, OpenIdContext)

Throws:
Exception


Copyright © 2008-2013. All Rights Reserved.