Methods Summary |
---|
public void | addTransportToken(com.sun.xml.ws.security.policy.Token token)
transportToken = (HttpsToken) token;
|
public com.sun.xml.ws.security.policy.AlgorithmSuite | getAlgorithmSuite()
populate();
return algSuite;
|
public com.sun.xml.ws.security.policy.MessageLayout | getLayout()
populate();
return layout;
|
public java.lang.String | getProtectionOrder()
throw new UnsupportedOperationException("Not supported");
|
public boolean | getSignatureProtection()
throw new UnsupportedOperationException("Not supported");
|
public boolean | getTokenProtection()
throw new UnsupportedOperationException("Not supported");
|
public com.sun.xml.ws.security.policy.Token | getTransportToken()
populate();
return transportToken;
|
public void | includeTimeStamp(boolean value)
includeTimeStamp = value;
|
public boolean | isIncludeTimeStamp()
populate();
return includeTimeStamp;
|
public boolean | isSignContent()
throw new UnsupportedOperationException("Not supported");
|
private void | populate()
populate(false);
|
private synchronized AssertionFitness | populate(boolean isServer)
if(!populated){
NestedPolicy policy = this.getNestedPolicy();
AssertionSet assertions = policy.getAssertionSet();
if(assertions == null){
if(logger.getLevel() == Level.FINE){
logger.log(Level.FINE,"NestedPolicy is null");
}
populated = true;
return fitness;
}
for(PolicyAssertion assertion : assertions){
if(PolicyUtil.isAlgorithmAssertion(assertion)){
this.algSuite = (AlgorithmSuite) assertion;
}else if(PolicyUtil.isToken(assertion)){
transportToken = (HttpsToken)((com.sun.xml.ws.security.impl.policy.Token)assertion).getToken();
}else if(PolicyUtil.isMessageLayout(assertion)){
layout = ((Layout)assertion).getMessageLayout();
}else if(PolicyUtil.isIncludeTimestamp(assertion)){
includeTimeStamp=true;
} else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,TransportBinding);
fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
}
}
}
populated = true;
}
return fitness;
|
public void | setAlgorithmSuite(com.sun.xml.ws.security.policy.AlgorithmSuite algSuite)
this.algSuite = algSuite;
|
public void | setLayout(com.sun.xml.ws.security.policy.MessageLayout layout)
this.layout = layout;
|
public void | setProtectionOrder(java.lang.String order)
throw new UnsupportedOperationException("Not supported");
|
public void | setSignContent(boolean contentOnly)
throw new UnsupportedOperationException("Not supported");
|
public void | setSignatureProtection(boolean token)
throw new UnsupportedOperationException("Not supported");
|
public void | setTokenProtection(boolean token)
throw new UnsupportedOperationException("Not supported");
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|