Methods Summary |
---|
public com.sun.xml.ws.security.policy.AlgorithmSuite | getAlgorithmSuite()
populate();
if(algSuite == null){
algSuite = new com.sun.xml.ws.security.impl.policy.AlgorithmSuite();
logger.log(Level.FINE, "Using Default Algorithm Suite Basic128");
}
return algSuite;
|
public com.sun.xml.ws.security.policy.Token | getInitiatorToken()
populate();
return initiatorToken;
|
public com.sun.xml.ws.security.policy.MessageLayout | getLayout()
populate();
return layout;
|
public java.lang.String | getProtectionOrder()
populate();
return protectionOrder;
|
public com.sun.xml.ws.security.policy.Token | getRecipientToken()
populate();
return recipientToken;
|
public boolean | getSignatureProtection()
populate();
return protectSignature;
|
public boolean | getTokenProtection()
populate();
return protectToken;
|
public void | includeTimeStamp(boolean value)
populate();
this.includeTimestamp = value;
|
public boolean | isIncludeTimeStamp()
populate();
return includeTimestamp;
|
public boolean | isSignContent()
populate();
return contentOnly;
|
private void | populate()
populate(false);
|
private synchronized AssertionFitness | populate(boolean isServer)
if(!populated){
NestedPolicy policy = this.getNestedPolicy();
if(policy == null){
if(logger.isLoggable(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.isInitiatorToken(assertion)){
this.initiatorToken = ((com.sun.xml.ws.security.impl.policy.Token)assertion).getToken();
}else if(PolicyUtil.isRecipientToken(assertion)){
this.recipientToken = ((com.sun.xml.ws.security.impl.policy.Token)assertion).getToken();
}else if(PolicyUtil.isAlgorithmAssertion(assertion)){
this.algSuite = (AlgorithmSuite) assertion;
}else if(PolicyUtil.isIncludeTimestamp(assertion)){
this.includeTimestamp = true;
}else if(PolicyUtil.isEncryptBeforeSign(assertion)){
this.protectionOrder = ENCRYPT_SIGN;
}else if (PolicyUtil.isSignBeforeEncrypt(assertion)){
this.protectionOrder = SIGN_ENCRYPT;
}else if(PolicyUtil.isContentOnlyAssertion(assertion)){
this.contentOnly = false;
}else if(PolicyUtil.isMessageLayout(assertion)){
layout = ((Layout)assertion).getMessageLayout();
}else if(PolicyUtil.isProtectTokens(assertion)){
this.protectToken = true;
}else if(PolicyUtil.isEncryptSignature(assertion)){
this.protectSignature = true;
}else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,AsymmetricBinding);
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 | setInitiatorToken(com.sun.xml.ws.security.policy.Token token)
this.initiatorToken = token;
|
public void | setLayout(com.sun.xml.ws.security.policy.MessageLayout layout)
this.layout = layout;
|
public void | setProtectionOrder(java.lang.String order)
this.protectionOrder = order;
|
public void | setRecipientToken(com.sun.xml.ws.security.policy.Token token)
this.recipientToken = token;
|
public void | setSignContent(boolean contentOnly)
this.contentOnly = contentOnly;
|
public void | setSignatureProtection(boolean value)
this.protectSignature = value;
|
public void | setTokenProtection(boolean value)
this.protectToken = value;
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|