com.dyuproject.openid.ext
Class SRegExtension.SimpleExchange

java.lang.Object
  extended by com.dyuproject.openid.ext.SRegExtension.SimpleExchange
All Implemented Interfaces:
Extension.Exchange
Enclosing class:
SRegExtension

public static final class SRegExtension.SimpleExchange
extends Object
implements Extension.Exchange

SimpleExchange - parses the value denoted by "openid.sreg.$alias = value".


Constructor Summary
SRegExtension.SimpleExchange(String alias)
           
 
Method Summary
 String getAlias()
          Gets the alias of this exchange.
 void parseAndPut(OpenIdUser user, HttpServletRequest request, Map<String,String> attributes, String extensionAlias)
          Parses a single field parameter as a response from the user's openid provider and puts it in the attributes map.
 void put(OpenIdUser user, HttpServletRequest request, UrlEncodedParameterMap params, String extensionAlias)
          Puts a single field parameter on the params to be included in the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SRegExtension.SimpleExchange

public SRegExtension.SimpleExchange(String alias)
Method Detail

getAlias

public String getAlias()
Description copied from interface: Extension.Exchange
Gets the alias of this exchange.

Specified by:
getAlias in interface Extension.Exchange

put

public void put(OpenIdUser user,
                HttpServletRequest request,
                UrlEncodedParameterMap params,
                String extensionAlias)
Description copied from interface: Extension.Exchange
Puts a single field parameter on the params to be included in the request.

Specified by:
put in interface Extension.Exchange

parseAndPut

public void parseAndPut(OpenIdUser user,
                        HttpServletRequest request,
                        Map<String,String> attributes,
                        String extensionAlias)
Description copied from interface: Extension.Exchange
Parses a single field parameter as a response from the user's openid provider and puts it in the attributes map.

Specified by:
parseAndPut in interface Extension.Exchange


Copyright © 2008-2013. All Rights Reserved.