Methods Summary |
---|
public java.util.Set | getAdditionalProps()
return props;
|
public java.lang.String | getAsymmetricKeyAlgorithm()
populate();
return value.getAsymKWAlgorithm();
|
public java.lang.String | getAsymmetricKeySignatureAlgorithm()
return com.sun.xml.ws.security.policy.Constants.RSA_SHA1;
|
public java.lang.String | getComputedKeyAlgorithm()
return com.sun.xml.ws.security.policy.Constants.PSHA1;
|
public java.lang.String | getDigestAlgorithm()
populate();
return value.getDigAlgorithm();
|
public java.lang.String | getEncryptionAlgorithm()
populate();
return value.getEncAlgorithm();
|
public java.lang.String | getEncryptionKDAlogrithm()
populate();
return value.getEncKDAlgorithm();
|
public int | getMaxAsymmetricKeyLength()
return MAX_AKL;
|
public int | getMaxSymmetricKeyLength()
return MAX_SKL;
|
public int | getMinAsymmetricKeyLength()
return MIN_AKL;
|
public int | getMinSKLAlgorithm()
populate();
return value.getMinSKLAlgorithm();
|
public java.lang.String | getSignatureKDAlogrithm()
populate();
return value.getSigKDAlgorithm();
|
public java.lang.String | getSymmetricKeyAlgorithm()
populate();
return value.getSymKWAlgorithm();
|
public java.lang.String | getSymmetricKeySignatureAlgorithm()
return com.sun.xml.ws.security.policy.Constants.HMAC_SHA1;
|
public com.sun.xml.ws.security.policy.AlgorithmSuiteValue | getType()
populate();
return value;
|
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");
}
if(this.value == null){
this.value = AlgorithmSuiteValue.Basic128;
}
return fitness;
}
AssertionSet as = policy.getAssertionSet();
Iterator<PolicyAssertion> ast = as.iterator();
while(ast.hasNext()){
PolicyAssertion assertion = ast.next();
if(this.value == null){
AlgorithmSuiteValue av = PolicyUtil.isValidAlgorithmSuiteValue(assertion);
if(av != null){
this.value = av;
continue;
}
}
if(PolicyUtil.isInclusiveC14N(assertion)){
this.props.add(Constants.InclusiveC14N);
}else if(PolicyUtil.isXPath(assertion)){
this.props.add(Constants.XPath);
}else if(PolicyUtil.isXPathFilter20(assertion)){
this.props.add(Constants.XPathFilter20);
}else if(PolicyUtil.isSTRTransform10(assertion)){
this.props.add(Constants.STRTransform10);
}else if(PolicyUtil.isInclusiveC14NWithComments(assertion)){
if(PolicyUtil.isInclusiveC14NWithCommentsForTransforms(assertion)){
this.props.add(Constants.InclusiveC14NWithCommentsForTransforms);
}
if(PolicyUtil.isInclusiveC14NWithCommentsForCm(assertion)){
this.props.add(Constants.InclusiveC14NWithCommentsForCm);
}
}else if(PolicyUtil.isExclusiveC14NWithComments(assertion)){
if(PolicyUtil.isExclusiveC14NWithCommentsForTransforms(assertion)){
this.props.add(Constants.ExclusiveC14NWithCommentsForTransforms);
}
if(PolicyUtil.isExclusiveC14NWithCommentsForCm(assertion)){
this.props.add(Constants.ExclusiveC14NWithCommentsForCm);
}
}else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,AlgorithmSuite);
fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
}
}
}
if(this.value == null){
this.value = AlgorithmSuiteValue.Basic128;
}
populated = true;
}
return fitness;
|
public void | setAdditionalProps(java.util.Set properties)
|
public void | setType(com.sun.xml.ws.security.policy.AlgorithmSuiteValue value)
this.value = value;
populated = true;
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|