BEA Systems, Inc.


com.bea.security.providers.authorization.asi
Interface ResourceConverter


public interface ResourceConverter

Interface for performing Resource conversions. Converters will transform from various implementations of the Resouce interface into a WLES AccessElement.

Author:
Copyright © 2006 BEA Systems, Inc. All Rights Reserved.

Method Summary
 com.wles.arme.AccessElement convertResource(weblogic.security.spi.Resource resource, weblogic.security.service.ContextHandler contextHandler)
          converts a resource to a asi AccessElement
 java.lang.Object getAttributeValue(weblogic.security.spi.Resource resource, java.lang.String name, weblogic.security.service.ContextHandler contextHandler)
          read the value of an attribute from the resource.
 java.lang.String[] getHandledTypes()
          Returns the types of resources handled by this converter.
 

Method Detail

getHandledTypes

public java.lang.String[] getHandledTypes()
Returns the types of resources handled by this converter.

Returns:
the type names associated with a Resource object

convertResource

public com.wles.arme.AccessElement convertResource(weblogic.security.spi.Resource resource,
                                                   weblogic.security.service.ContextHandler contextHandler)
                                            throws com.bea.security.providers.authorization.asi.ResourceConversionException
converts a resource to a asi AccessElement

Parameters:
resource - resource to convert
context - to pull any extra data from
Returns:
an AccessElement representing the question
Throws:
ResourceConversionException - if there is an error converting the resource

getAttributeValue

public java.lang.Object getAttributeValue(weblogic.security.spi.Resource resource,
                                          java.lang.String name,
                                          weblogic.security.service.ContextHandler contextHandler)
read the value of an attribute from the resource.

Parameters:
the - name of the needed attribute
Returns:
the attributes value, or null if not found

Documentation is available at
http://download.oracle.com/docs/cd/E13169_01/ales/docs30