Methods Summary |
---|
public void | addToken(com.sun.xml.ws.security.policy.Token token)
if(_tokenList == null){
_tokenList = new ArrayList<Token>();
//Workaround - workaround to remove duplicate UsernameToken : uncomment this
//_tokenList.add(token);
}
//Workaround - comment
_tokenList.add(token);
|
public com.sun.xml.ws.security.policy.AlgorithmSuite | getAlgorithmSuite()
populate();
return algSuite;
|
public java.util.Iterator | getEncryptedElements()
populate();
return eeList.iterator();
|
public java.util.Iterator | getEncryptedParts()
populate();
return epList.iterator();
|
public java.lang.String | getIncludeToken()
return "";
|
public java.util.Iterator | getSignedElements()
populate();
return seList.iterator();
|
public java.util.Iterator | getSignedParts()
populate();
return spList.iterator();
|
public java.lang.String | getTokenId()
return "";
|
public java.util.Iterator | getTokens()
populate();
if ( _tokenList != null ) {
return _tokenList.iterator();
}
return Collections.emptyList().iterator();
|
private synchronized void | populate()
if(!populated){
NestedPolicy policy = this.getNestedPolicy();
if(policy == null){
if(logger.getLevel() == Level.FINE){
logger.log(Level.FINE,"NestedPolicy is null");
}
populated = true;
return;
}
AssertionSet as = policy.getAssertionSet();
Iterator<PolicyAssertion> ast = as.iterator();
while(ast.hasNext()){
PolicyAssertion assertion = ast.next();
if(PolicyUtil.isAlgorithmAssertion(assertion)){
this.algSuite = (AlgorithmSuite) assertion;
}else if(PolicyUtil.isToken(assertion)){
addToken((Token)assertion);
//this._tokenList.add((Token)assertion);
}else if(PolicyUtil.isSignedParts(assertion)){
spList.add((SignedParts) assertion);
}else if(PolicyUtil.isSignedElements(assertion)){
seList.add((SignedElements)assertion);
}else if(PolicyUtil.isEncryptParts(assertion)){
epList.add((EncryptedParts)assertion);
}else if(PolicyUtil.isEncryptedElements(assertion)){
eeList.add((EncryptedElements)assertion);
}else{
if(!assertion.isOptional()){
if(logger.getLevel() == Level.SEVERE){
logger.log(Level.SEVERE,"SP0100.invalid.security.assertion",new Object[]{assertion,"SupportingTokens"});
}
if(isServer){
throw new UnsupportedPolicyAssertion("Policy assertion "+
assertion+" is not supported under SupportingTokens assertion");
}
}
}
}
populated = true;
}
|
public void | setAlgorithmSuite(com.sun.xml.ws.security.policy.AlgorithmSuite algSuite)
this.algSuite =algSuite;
|
public void | setIncludeToken(java.lang.String type)
|