Methods Summary |
---|
public java.lang.String | getIncludeToken()
populate();
return _includeToken;
|
public com.sun.xml.ws.security.policy.Token | getToken()
populate();
return _token;
|
public java.lang.String | getTokenId()
return _id;
|
private void | populate()
populate(false);
|
private synchronized AssertionFitness | populate(boolean isServer)
if(!populated){
String tValue = getAttributeValue(itQname);
if(tValue != null){
_includeToken = tValue;
}
NestedPolicy policy = this.getNestedPolicy();
if(policy == null){
if(logger.getLevel() == Level.FINE){
logger.log(Level.FINE,"NestedPolicy is null");
}
populated = true;
return fitness;
}
AssertionSet as = policy.getAssertionSet();
Iterator<PolicyAssertion> ast = as.iterator();
while(ast.hasNext()){
PolicyAssertion assertion = ast.next();
if(PolicyUtil.isToken(assertion)){
_token = (com.sun.xml.ws.security.policy.Token)assertion;
}else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,"Token");
fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
}
}
}
populated = true;
}
return fitness;
|
public void | setIncludeToken(java.lang.String type)
|
public void | setToken(com.sun.xml.ws.security.policy.Token token)
//TODO
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|