com.ibm.wsspi.wssecurity.id
Class TrustedIDEvaluatorImpl
java.lang.Object
|
+--com.ibm.wsspi.wssecurity.id.TrustedIDEvaluatorImpl
- All Implemented Interfaces:
- Initializable, TrustedIDEvaluator
- public class TrustedIDEvaluatorImpl
- extends java.lang.Object
- implements TrustedIDEvaluator
Basic implementation of TrustedIDEvaluator
. This class accepts
a list of trusted IDs through init parameters whose name is
trustedId_n
where n
is an integer.
Field Summary |
protected java.lang.String |
currentRealm
|
protected java.util.HashSet |
list
|
protected static com.ibm.xml.soapsec.token.UserRegistry |
registry
|
Method Summary |
boolean |
evaluate(java.lang.String id)
Evaluates whether the received ID is trusted. |
void |
init(java.util.Map map)
Initializes the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registry
protected static com.ibm.xml.soapsec.token.UserRegistry registry
list
protected java.util.HashSet list
currentRealm
protected java.lang.String currentRealm
TrustedIDEvaluatorImpl
public TrustedIDEvaluatorImpl()
init
public void init(java.util.Map map)
throws SoapSecurityException
- Description copied from interface:
Initializable
- Initializes the object.
- Specified by:
init
in interface Initializable
- Following copied from interface:
com.ibm.wsspi.wssecurity.Initializable
- Parameters:
map
- a Map
object which contains name-value pairs.
These pairs are specified in <Property>
elements in
the configuration XMI files.
evaluate
public boolean evaluate(java.lang.String id)
throws TrustedIDEvaluatorException
- Description copied from interface:
TrustedIDEvaluator
- Evaluates whether the received ID is trusted.
- Specified by:
evaluate
in interface TrustedIDEvaluator
- Following copied from interface:
com.ibm.wsspi.wssecurity.id.TrustedIDEvaluator
- Parameters:
id
- An ID to be evaluated. Realm name may be specified with a
format "id@realm".- Returns:
true
if the ID is trusted, false
otherwise.