com.sun.ebxml.registry.security.authorization
Class RegistryAttributeFinderModule

java.lang.Object
  |
  +--com.sun.xacml.finder.AttributeFinderModule
        |
        +--com.sun.ebxml.registry.security.authorization.RegistryAttributeFinderModule

public class RegistryAttributeFinderModule
extends com.sun.xacml.finder.AttributeFinderModule

Supports the attributes defined by ebRIM for RegistryObjects.

Author:
Farrukh S. Najmi

Field Summary
static java.lang.String REGISTRY_RESOURCE_OWNER
          The owner resource attribute designator as defined by ebRIM.
static java.lang.String REGISTRY_RESOURCE_PREFIX
          The prefix for all resource attribute designators as defined by ebRIM.
static java.lang.String REGISTRY_RESOURCE_SELECTOR
          The selector resource attribute designator as defined by ebRIM.
static java.lang.String REGISTRY_SUBJECT_PREFIX
          The prefix for all subject attribute designators as defined by ebRIM.
 
Constructor Summary
RegistryAttributeFinderModule()
           
 
Method Summary
 com.sun.xacml.cond.EvaluationResult findAttribute(java.net.URI attributeType, java.net.URI attributeId, java.net.URI issuer, java.net.URI subjectCategory, com.sun.xacml.EvaluationCtx context, int designatorType)
          Used to get the attributes defined by ebRIM for resources and subjects.
 java.util.Set getClassificationNodeIds(java.lang.Object obj, java.lang.String schemeId)
          Gets the Set of id STrings for all the nodes that classify the specified object within specified ClassificationScheme
 java.util.Set getSupportedDesignatorTypes()
          Returns a Set with a single Integer specifying that environment attributes are supported by this module.
 boolean isDesignatorSupported()
          Returns true always because this module supports designators.
 
Methods inherited from class com.sun.xacml.finder.AttributeFinderModule
findAttribute, getSupportedIds, isSelectorSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGISTRY_RESOURCE_PREFIX

public static final java.lang.String REGISTRY_RESOURCE_PREFIX
The prefix for all resource attribute designators as defined by ebRIM.

See Also:
Constant Field Values

REGISTRY_SUBJECT_PREFIX

public static final java.lang.String REGISTRY_SUBJECT_PREFIX
The prefix for all subject attribute designators as defined by ebRIM.

See Also:
Constant Field Values

REGISTRY_RESOURCE_OWNER

public static final java.lang.String REGISTRY_RESOURCE_OWNER
The owner resource attribute designator as defined by ebRIM.

See Also:
Constant Field Values

REGISTRY_RESOURCE_SELECTOR

public static final java.lang.String REGISTRY_RESOURCE_SELECTOR
The selector resource attribute designator as defined by ebRIM.

See Also:
Constant Field Values
Constructor Detail

RegistryAttributeFinderModule

public RegistryAttributeFinderModule()
Method Detail

isDesignatorSupported

public boolean isDesignatorSupported()
Returns true always because this module supports designators.

Overrides:
isDesignatorSupported in class com.sun.xacml.finder.AttributeFinderModule
Returns:
true always

getSupportedDesignatorTypes

public java.util.Set getSupportedDesignatorTypes()
Returns a Set with a single Integer specifying that environment attributes are supported by this module.

Overrides:
getSupportedDesignatorTypes in class com.sun.xacml.finder.AttributeFinderModule
Returns:
a Set with AttributeDesignator.SUBJECT_TARGET and AttributeDesignator.RESOURCE_TARGET included

findAttribute

public com.sun.xacml.cond.EvaluationResult findAttribute(java.net.URI attributeType,
                                                         java.net.URI attributeId,
                                                         java.net.URI issuer,
                                                         java.net.URI subjectCategory,
                                                         com.sun.xacml.EvaluationCtx context,
                                                         int designatorType)
Used to get the attributes defined by ebRIM for resources and subjects. If one of those values isn't being asked for, or if the types are wrong, then a empty bag is returned.

Overrides:
findAttribute in class com.sun.xacml.finder.AttributeFinderModule
Parameters:
attributeType - the datatype of the attributes to find
attributeId - the identifier of the attributes to find
issuer - the issuer of the attributes, or null if unspecified
subjectCategory - the category of the attribute or null
context - the representation of the request data
designatorType - the type of designator
Returns:
the result of attribute retrieval, which will be a bag with a single attribute, an empty bag, or an error

getClassificationNodeIds

public java.util.Set getClassificationNodeIds(java.lang.Object obj,
                                              java.lang.String schemeId)
                                       throws RegistryException
Gets the Set of id STrings for all the nodes that classify the specified object within specified ClassificationScheme

RegistryException


Copyright © 2001-2003 OASIS. All Rights Reserved.