Oracle Entitlements Server Provider SSPI API Reference

com.bea.security.spi
Class SimpleAccessResponse

java.lang.Object
  |
  +--com.bea.security.spi.AccessResponse
        |
        +--com.bea.security.spi.SimpleAccessResponse

public class SimpleAccessResponse
extends AccessResponse

This class provides a simple implementation of the AccessResponse abstract class. It is used to return extended authorization data, see AccessResponse and AccessResponseCollector for further details.

Author:
Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.

Constructor Summary
SimpleAccessResponse(AccessDecision source, Result result, ContextHandler[] responseContexts)
          Construct a new SimpleAccessResponse object.
 
Method Summary
 java.lang.String getAccessDecisionClassName()
          Get the AccessDecision (provider) class name.
 ContextHandler[] getResponseContexts()
          Gets the provider supplied response data.
 Result getResult()
          Gets the authorization result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAccessResponse

public SimpleAccessResponse(AccessDecision source,
                            Result result,
                            ContextHandler[] responseContexts)
                     throws InvalidParameterException
Construct a new SimpleAccessResponse object.

Parameters:
source - The provider producing this response.
result - The authorization result associated with this response.
responseContexts - Additional detailed authorization response data, may be null.
Throws:
InvalidParameterException - thrown if either source or result is not specified.
Method Detail

getAccessDecisionClassName

public java.lang.String getAccessDecisionClassName()
Get the AccessDecision (provider) class name.

Returns:
The class name of the access decision.
Overrides:
getAccessDecisionClassName in class AccessResponse

getResult

public Result getResult()
Gets the authorization result.

Returns:
The authorization result as returned by the provider.
Overrides:
getResult in class AccessResponse

getResponseContexts

public ContextHandler[] getResponseContexts()
Gets the provider supplied response data. This data is provided as a series of response ContextHandler objects.

Returns:
An array of ContextHandler objects containing response data.
Overrides:
getResponseContexts in class AccessResponse