nbi.xmlsec.xacml.builder
Class X500NameSubjectMatchBuilder

java.lang.Object
  extended bynbi.xmlsec.xacml.builder.TargetMatchBuilder
      extended bynbi.xmlsec.xacml.builder.SubjectMatchBuilder
          extended bynbi.xmlsec.xacml.builder.X500NameSubjectMatchBuilder

public class X500NameSubjectMatchBuilder
extends SubjectMatchBuilder

Implements an SubjectMatchBuilder for X500Name attributes.

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

Field Summary
 
Fields inherited from class nbi.xmlsec.xacml.builder.TargetMatchBuilder
attribute, eval, function, type
 
Constructor Summary
X500NameSubjectMatchBuilder()
           
X500NameSubjectMatchBuilder(X500Principal subject)
          Creates the instance and selects the EqualFunction.NAME_X500NAME_EQUAL.
X500NameSubjectMatchBuilder(X500Principal subject, boolean match)
          Creates the instance.
 
Method Summary
 AttributeValue createMatchValue()
          Creates the attribute match value from the attribute.
 void setAttribute(X500Principal subject)
          Sets an X500Principal attribute.
 
Methods inherited from class nbi.xmlsec.xacml.builder.TargetMatchBuilder
getInstance, setAttribute, setMatchEvaluatable, setMatchEvaluatable, setMatchFunction, setMatchFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X500NameSubjectMatchBuilder

public X500NameSubjectMatchBuilder()

X500NameSubjectMatchBuilder

public X500NameSubjectMatchBuilder(X500Principal subject,
                                   boolean match)
Creates the instance.

Parameters:
subject - The X500Name subject to match.
match - true, selects the MatchFunction.NAME_X500NAME_MATCH function, false EqualFunction.NAME_X500NAME_EQUAL.
Throws:
UnknownIdentifierException - see FunctionFactory.createFunction(String).
FunctionTypeException - see FunctionFactory.createFunction(String).

X500NameSubjectMatchBuilder

public X500NameSubjectMatchBuilder(X500Principal subject)
Creates the instance and selects the EqualFunction.NAME_X500NAME_EQUAL.

Parameters:
subject - The X500Name subject to match.
Throws:
UnknownIdentifierException - see FunctionFactory.createFunction(String).
FunctionTypeException - see FunctionFactory.createFunction(String).
Method Detail

setAttribute

public void setAttribute(X500Principal subject)
Sets an X500Principal attribute.

Parameters:
subject - The X500Principal attribute.

createMatchValue

public AttributeValue createMatchValue()
Creates the attribute match value from the attribute.

Overrides:
createMatchValue in class SubjectMatchBuilder
Returns:
The created attribute value.
See Also:
TargetMatchBuilder.createMatchValue()


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