nbi.xmlsec.xacml.parser
Class TargetMatchParserFactory

java.lang.Object
  extended bynbi.xmlsec.xacml.parser.TargetMatchParserFactory
Direct Known Subclasses:
AssignmentTargetMatchParserFactory, PermissionTargetMatchParserFactory, RolePolicySetTargetMatchParserFactory

public class TargetMatchParserFactory
extends Object

Implements a factory for TargetMatchParser. TargetMatchParsers have to be registered under the key of the related attribute id of the match value AttributeValue. The getInstance(int,TargetMatch)method returns the matching TargetMatchParserinstance, initialised with the given target match.

Since:
Version:
$Revision: 1.2 $
Author:
Lutz Suhrbier

Field Summary
(package private)  HashMap actionMatchParser
          Registry for action match parsers
(package private) static Logger logger
           
(package private)  HashMap resourceMatchParser
          Registry for resource match parsers
(package private)  HashMap subjectMatchParser
          Registry for subject match parsers
 
Constructor Summary
TargetMatchParserFactory()
           
 
Method Summary
 TargetMatchParser getInstance(int type, TargetMatch targetMatch)
          Creates an instance of a matching TargetMatchParserof the given target match.
 void registerActionMatchParser(URI attributeId, TargetMatchParser parser)
          Registers a TargetMatchParser for a given attribute identifier.
 void registerResourceMatchParser(URI attributeId, TargetMatchParser parser)
          Registers a TargetMatchParser for a given attribute identifier.
 void registerSubjectMatchParser(URI attributeId, TargetMatchParser parser)
          Registers a TargetMatchParser for a given attribute identifier.
protected  void registerTargetMatchParser(int type, URI attributeId, TargetMatchParser parser)
          Registers a TargetMatchParserfor a given attribute id.
 void unregisterActionMatchParser(URI attributeId)
          Unregisters a TargetMatchParser for a given attribute identifier.
 void unregisterResourceMatchParser(URI attributeId)
          Unregisters a TargetMatchParser for a given attribute identifier.
 void unregisterSubjectMatchParser(URI attributeId)
          Unregisters a TargetMatchParser for a given attribute identifier.
protected  void unregisterTargetMatchBuilder(int type, URI attributeId)
          Unregisters a TargetMatchParserof an attribute id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static Logger logger

subjectMatchParser

HashMap subjectMatchParser
Registry for subject match parsers


resourceMatchParser

HashMap resourceMatchParser
Registry for resource match parsers


actionMatchParser

HashMap actionMatchParser
Registry for action match parsers

Constructor Detail

TargetMatchParserFactory

public TargetMatchParserFactory()
Method Detail

getInstance

public TargetMatchParser getInstance(int type,
                                     TargetMatch targetMatch)
Creates an instance of a matching TargetMatchParserof the given target match.

Parameters:
type - TargetMatchParsertype ( SUBJECT, RESOURCEor ACTION).
targetMatch - The target match to create a parser for.
Returns:
TargetMatchParserinstance or null.

registerSubjectMatchParser

public void registerSubjectMatchParser(URI attributeId,
                                       TargetMatchParser parser)
Registers a TargetMatchParser for a given attribute identifier.

Parameters:
attributeId - The attribute identifier of the parser to register.
parser - TargetMatchParserrelated to the attribute id..

registerResourceMatchParser

public void registerResourceMatchParser(URI attributeId,
                                        TargetMatchParser parser)
Registers a TargetMatchParser for a given attribute identifier.

Parameters:
attributeId - The attribute identifier of the parser to register.
parser - TargetMatchParserrelated to the attribute id..

registerActionMatchParser

public void registerActionMatchParser(URI attributeId,
                                      TargetMatchParser parser)
Registers a TargetMatchParser for a given attribute identifier.

Parameters:
attributeId - The attribute identifier of the parser to register.
parser - TargetMatchParserrelated to the attribute id..

registerTargetMatchParser

protected void registerTargetMatchParser(int type,
                                         URI attributeId,
                                         TargetMatchParser parser)
Registers a TargetMatchParserfor a given attribute id.

Parameters:
type - TargetMatchParsertype ( SUBJECT, RESOURCEor ACTION).
attributeId - The attribute identifier of the parser to register.
parser - TargetMatchParserrelated to the attribute id..

unregisterSubjectMatchParser

public void unregisterSubjectMatchParser(URI attributeId)
Unregisters a TargetMatchParser for a given attribute identifier.

Parameters:
attributeId - The attribute identifier of the parser to unregister.

unregisterResourceMatchParser

public void unregisterResourceMatchParser(URI attributeId)
Unregisters a TargetMatchParser for a given attribute identifier.

Parameters:
attributeId - The attribute identifier of the parser to unregister.

unregisterActionMatchParser

public void unregisterActionMatchParser(URI attributeId)
Unregisters a TargetMatchParser for a given attribute identifier.

Parameters:
attributeId - The attribute identifier of the parser to unregister.

unregisterTargetMatchBuilder

protected void unregisterTargetMatchBuilder(int type,
                                            URI attributeId)
Unregisters a TargetMatchParserof an attribute id.

Parameters:
type - TargetMatchParsertype ( SUBJECT, RESOURCEor ACTION).
attributeId - The attribute identifier of the parser to remove,


Copyright © 2006 Lutz Suhrbier, Freie Universitšt Berlin. All Rights Reserved.