com.sibvisions.rad.server.http.rest
Class SecurityManagerVerifier

java.lang.Object
  extended by com.sibvisions.rad.server.http.rest.SecurityManagerVerifier
All Implemented Interfaces:
org.restlet.security.Verifier

public class SecurityManagerVerifier
extends Object
implements org.restlet.security.Verifier

The SecurityManagerVerifier uses the security mangaer of an application to authenticate a user.


Field Summary
 
Fields inherited from interface org.restlet.security.Verifier
RESULT_INVALID, RESULT_MISSING, RESULT_STALE, RESULT_UNKNOWN, RESULT_UNSUPPORTED, RESULT_VALID
 
Constructor Summary
SecurityManagerVerifier()
           
 
Method Summary
protected  String getIdentifier(org.restlet.Request pRequest, org.restlet.Response pResponse)
          Returns the user identifier.
protected  char[] getSecret(org.restlet.Request pRequest, org.restlet.Response pResponse)
          Returns the secret provided by the user.
 int verify(org.restlet.Request pRequest, org.restlet.Response pResponse)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityManagerVerifier

public SecurityManagerVerifier()
Method Detail

verify

public int verify(org.restlet.Request pRequest,
                  org.restlet.Response pResponse)

Specified by:
verify in interface org.restlet.security.Verifier

getIdentifier

protected String getIdentifier(org.restlet.Request pRequest,
                               org.restlet.Response pResponse)
Returns the user identifier.

Parameters:
pRequest - The request to inspect.
pResponse - The response to inspect.
Returns:
The user identifier.

getSecret

protected char[] getSecret(org.restlet.Request pRequest,
                           org.restlet.Response pResponse)
Returns the secret provided by the user.

Parameters:
pRequest - The request to inspect.
pResponse - The response to inspect.
Returns:
The secret provided by the user.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.