|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nbi.xmlsec.xacml.builder.TargetMatchBuilderFactory
Implements a factory for TargetMatchBuilders. TargetMatchBuilders have to be
registered under the key of the related object class. The
getInstance(int, Object)
method returns the
matching TargetMatchBuilder
instance, initialised
with the given object as attribute.
Field Summary | |
(package private) HashMap |
actionMatchBuilder
Registry for action match builders |
(package private) static Logger |
logger
|
(package private) HashMap |
resourceMatchBuilder
Registry for resource match builders |
(package private) HashMap |
subjectMatchBuilder
Registry for subject match builders |
Constructor Summary | |
TargetMatchBuilderFactory()
|
Method Summary | |
TargetMatchBuilder |
getInstance(int type,
Object obj)
Creates an instance of a matching TargetMatchBuilder of the given object. |
void |
registerActionMatchBuilder(Class objClass,
TargetMatchBuilder builder)
Registers a ActionMatchBuilder for a given
object class. |
void |
registerResourceMatchBuilder(Class objClass,
TargetMatchBuilder builder)
Registers a SubjectMatchBuilder for a given
object class. |
void |
registerSubjectMatchBuilder(Class objClass,
TargetMatchBuilder builder)
Registers a SubjectMatchBuilder for a given
object class. |
protected void |
registerTargetMatchBuilder(int type,
Class objClass,
TargetMatchBuilder builder)
Registers a TargetMatchBuilder for a given
object class. |
void |
unregisterActionMatchBuilder(Class objClass)
Unregisters a ActionMatchBuilder for a given
object class. |
void |
unregisterResourceMatchBuilder(Class objClass)
Unregisters a SubjectMatchBuilder for a given
object class. |
void |
unregisterSubjectMatchBuilder(Class objClass)
Unregisters a SubjectMatchBuilder for a given
object class. |
protected void |
unregisterTargetMatchBuilder(int type,
Class objClass)
Unregisters a TargetMatchBuilder of an object
class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static Logger logger
HashMap subjectMatchBuilder
HashMap resourceMatchBuilder
HashMap actionMatchBuilder
Constructor Detail |
public TargetMatchBuilderFactory()
Method Detail |
public TargetMatchBuilder getInstance(int type, Object obj)
TargetMatchBuilder
of the given object.
type
- TargetMatchBuilder
type (
SUBJECT
,
RESOURCE
or
ACTION
).obj
- Object to create a matching
TargetMatchBuilder
for.
TargetMatchBuilder
instance or
null
.public void registerSubjectMatchBuilder(Class objClass, TargetMatchBuilder builder)
SubjectMatchBuilder
for a given
object class.
objClass
- Object class to register.builder
- SubjectMatchBuilder
related to the
object class.public void registerResourceMatchBuilder(Class objClass, TargetMatchBuilder builder)
SubjectMatchBuilder
for a given
object class.
objClass
- Object class to register.builder
- ResourceMatchBuilder
related to
the object class.public void registerActionMatchBuilder(Class objClass, TargetMatchBuilder builder)
ActionMatchBuilder
for a given
object class.
objClass
- Object class to register.builder
- ActionMatchBuilder
related to the
object class.protected void registerTargetMatchBuilder(int type, Class objClass, TargetMatchBuilder builder)
TargetMatchBuilder
for a given
object class.
type
- TargetMatchBuilder
type (
SUBJECT
,
RESOURCE
or
ACTION
).objClass
- Object class to register.builder
- TargetMatchBuilder
related to the
object class.public void unregisterSubjectMatchBuilder(Class objClass)
SubjectMatchBuilder
for a given
object class.
objClass
- Object class to unregister.public void unregisterResourceMatchBuilder(Class objClass)
SubjectMatchBuilder
for a given
object class.
objClass
- Object class to register.public void unregisterActionMatchBuilder(Class objClass)
ActionMatchBuilder
for a given
object class.
objClass
- Object class to register.protected void unregisterTargetMatchBuilder(int type, Class objClass)
TargetMatchBuilder
of an object
class.
type
- TargetMatchBuilder
type (
SUBJECT
,
RESOURCE
or
ACTION
).objClass
- Object class to unregister.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |