Methods Summary |
---|
public void | addBootstrapPolicy(com.sun.xml.ws.policy.NestedPolicy policy)
|
private void | addToken(com.sun.xml.ws.security.policy.Token token, java.util.ArrayList list)
if(PolicyUtil.isIssuedToken((PolicyAssertion)token)){
list.add((PolicyAssertion)token);
}
|
public com.sun.xml.ws.policy.NestedPolicy | getBootstrapPolicy()
return this.scToken.getBootstrapPolicy();
|
public java.lang.String | getIncludeToken()
return this.scToken.getIncludeToken();
|
public java.util.List | getIssuedTokens()
if(!cached){
if(this.hasNestedPolicy()){
tokenList = getTokens(this.getNestedPolicy());
cached = true;
}
}
return tokenList;
|
public com.sun.xml.ws.security.policy.Issuer | getIssuer()
return this.scToken.getIssuer();
|
public com.sun.xml.wss.impl.policy.mls.MessagePolicy | getMessagePolicy()
return messagePolicy;
|
private static java.util.Collection | getNestedAssertions(com.sun.xml.ws.policy.PolicyAssertion scToken)
if(scToken.hasNestedAssertions()){
Iterator<PolicyAssertion> itr = scToken.getNestedAssertionsIterator();
if(itr.hasNext()){// will have only one assertion set. TODO:Cross check with marek.
return Collections.singletonList(itr.next());
}
}
return null;
|
public com.sun.xml.ws.security.policy.SecureConversationToken | getSecureConversationToken()
return scToken;
|
public java.lang.String | getTokenId()
return this.scToken.getTokenId();
|
public java.util.Set | getTokenRefernceTypes()
return this.scToken.getTokenRefernceTypes();
|
public java.lang.String | getTokenType()
return this.scToken.getTokenType();
|
private java.util.ArrayList | getTokens(com.sun.xml.ws.policy.NestedPolicy policy)
ArrayList<PolicyAssertion> tokenList = new ArrayList<PolicyAssertion>();
AssertionSet assertionSet = policy.getAssertionSet();
for(PolicyAssertion pa:assertionSet){
if(PolicyUtil.isBootstrapPolicy(pa)){
NestedPolicy np = pa.getNestedPolicy();
AssertionSet bpSet = np.getAssertionSet();
for(PolicyAssertion assertion:bpSet){
if(PolicyUtil.isAsymmetricBinding(assertion)){
AsymmetricBinding sb = (AsymmetricBinding)assertion;
addToken(sb.getInitiatorToken(),tokenList);
addToken(sb.getRecipientToken(),tokenList);
}else if(PolicyUtil.isSymmetricBinding(assertion)){
SymmetricBinding sb = (SymmetricBinding)assertion;
Token token = sb.getProtectionToken();
if(token != null){
addToken(token,tokenList);
}else{
addToken(sb.getEncryptionToken(),tokenList);
addToken(sb.getSignatureToken(),tokenList);
}
}else if(PolicyUtil.isSupportingTokens(assertion)){
SupportingTokens st = (SupportingTokens)assertion;
Iterator itr = st.getTokens();
while(itr.hasNext()){
addToken((Token)itr.next(),tokenList);
}
}
}
}
}
return tokenList;
|
public boolean | isRequireDerivedKeys()
return this.scToken.isRequireDerivedKeys();
|
public void | setMessagePolicyp(com.sun.xml.wss.impl.policy.mls.MessagePolicy mp)
this.messagePolicy = mp;
|
public void | setSecureConversationToken(com.sun.xml.ws.security.policy.SecureConversationToken scToken)
this.scToken = scToken;
|