com.dyuproject.openid.ext
Class AbstractExtension

java.lang.Object
  extended by com.dyuproject.openid.ext.AbstractExtension
All Implemented Interfaces:
Extension, RelyingParty.Listener
Direct Known Subclasses:
AxSchemaExtension, SRegExtension

public abstract class AbstractExtension
extends Object
implements Extension

Base class for extensions

Author:
David Yu
Date created:
May 27, 2009

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.dyuproject.openid.ext.Extension
Extension.Exchange
 
Field Summary
protected  String _alias
           
protected  String _namespace
           
 
Constructor Summary
AbstractExtension(String alias, String namespace)
           
 
Method Summary
 boolean equals(Object another)
           
 String getAlias()
          Gets the alias of this extension.
 String getNamespace()
          Gets the namespace (normally a url) for this extension.
 void onAccess(OpenIdUser user, HttpServletRequest request)
          Not needed by an extension.
 void onDiscovery(OpenIdUser user, HttpServletRequest request)
          Not needed by an extension.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.dyuproject.openid.RelyingParty.Listener
onAuthenticate, onPreAuthenticate
 

Field Detail

_alias

protected final String _alias

_namespace

protected final String _namespace
Constructor Detail

AbstractExtension

public AbstractExtension(String alias,
                         String namespace)
Method Detail

getAlias

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

Specified by:
getAlias in interface Extension

getNamespace

public final String getNamespace()
Description copied from interface: Extension
Gets the namespace (normally a url) for this extension.

Specified by:
getNamespace in interface Extension

onDiscovery

public void onDiscovery(OpenIdUser user,
                        HttpServletRequest request)
Not needed by an extension.

Specified by:
onDiscovery in interface RelyingParty.Listener

onAccess

public void onAccess(OpenIdUser user,
                     HttpServletRequest request)
Not needed by an extension.

Specified by:
onAccess in interface RelyingParty.Listener

equals

public boolean equals(Object another)
Overrides:
equals in class Object


Copyright © 2008-2013. All Rights Reserved.