/* * Copyright 2006-2008 Sxip Identity Corporation */ package org.openid4java.message; /** * Interface for building OpenID extensions. *
* Classes that implement this interface should provide a default constructor * and register their Type URIs with the MessageExtensionFactory. * * @see MessageExtensionFactory Message * @author Marius Scurtescu, Johnny Bufu */ public interface MessageExtension { /** * Gets the TypeURI that identifies a extension to the OpenID protocol. */ public String getTypeUri(); /** * Gets the extension-specific parameters. *
* Implementations MUST NOT prefix the parameter names with
* "openid.
* Implementations MUST NOT prefix the parameter names with
* "openid.
* If the extension provides authentication services,
* the 'openid.identity' and 'openid.signed' parameters are optional.
*
* @return True if the extension provides authentication services,
* false otherwise.
*/
public boolean providesIdentifier();
/**
* Flag for indicating that an extension must be signed.
*
* @return True if all the extension's parameters MUST be signed
* in positive assertions, or false if there isn't such a
* requirement.
*/
public boolean signRequired();
}