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 | getEncryptionToken()
populate();
return encryptionToken;
|
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 | getProtectionToken()
populate();
return protectionToken;
|
public boolean | getSignatureProtection()
populate();
return protectSignature;
|
public com.sun.xml.ws.security.policy.Token | getSignatureToken()
populate();
return signatureToken;
|
public boolean | getTokenProtection()
populate();
return protectToken;
|
public void | includeTimeStamp(boolean value)
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.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.isSignatureToken(assertion)){
this.signatureToken = ((com.sun.xml.ws.security.impl.policy.Token)assertion).getToken();
}else if(PolicyUtil.isEncryptionToken(assertion)){
this.encryptionToken =((com.sun.xml.ws.security.impl.policy.Token)assertion).getToken();
}else if(PolicyUtil.isProtectionToken(assertion)){
this.protectionToken = ((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,SymmetricBinding);
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 | setEncryptionToken(com.sun.xml.ws.security.policy.Token token)
encryptionToken = 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 | setProtectionToken(com.sun.xml.ws.security.policy.Token token)
protectionToken = token;
|
public void | setSignContent(boolean contentOnly)
this.contentOnly = contentOnly;
|
public void | setSignatureProtection(boolean value)
this.protectSignature = value;
|
public void | setSignatureToken(com.sun.xml.ws.security.policy.Token token)
signatureToken = token;
|
public void | setTokenProtection(boolean value)
this.protectToken = value;
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|