Project Wonder 5.0

er.rest.entityDelegates
Class ERXUnsafeRestAuthenticationDelegate

java.lang.Object
  extended by er.rest.entityDelegates.ERXUnsafeRestAuthenticationDelegate
All Implemented Interfaces:
IERXRestAuthenticationDelegate

public class ERXUnsafeRestAuthenticationDelegate
extends java.lang.Object
implements IERXRestAuthenticationDelegate

ERXUnsafeRestAuthenticationDelegate should NEVER be used in production. This is an auth delegate implementation designed to allow you to explore the features of ERRest without having to actually write a custom delegate. This implementation just returns true if you are in development mode. It will always return false if ERXApplication.erxApplication().isDevelopmentMode() is false.

Author:
mschrag

Constructor Summary
ERXUnsafeRestAuthenticationDelegate()
           
 
Method Summary
 boolean authenticate(ERXRestContext context)
          Attempt to authenticate the user with the given context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ERXUnsafeRestAuthenticationDelegate

public ERXUnsafeRestAuthenticationDelegate()
Method Detail

authenticate

public boolean authenticate(ERXRestContext context)
Description copied from interface: IERXRestAuthenticationDelegate
Attempt to authenticate the user with the given context. The context provides access to things like the WOContext, which you can traverse to get the WORequest and access form variables if need be.

Specified by:
authenticate in interface IERXRestAuthenticationDelegate
Parameters:
context - the rest context
Returns:
whether or not authentication was successful

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.