Methods Summary |
---|
public com.sun.xml.ws.policy.NestedPolicy | getBootstrapPolicy()
populate();
return bootstrapPolicy;
|
public java.lang.String | getIncludeToken()
populate();
return includeToken;
|
public Issuer | getIssuer()
populate();
return issuer;
|
public java.lang.String | getTokenId()
return id;
|
public java.util.Set | getTokenRefernceTypes()
populate();
if(referenceType == null ){
return Collections.emptySet();
}
return referenceType;
|
public java.lang.String | getTokenType()
populate();
return this.tokenType;
|
public boolean | isRequireDerivedKeys()
populate();
if( rdKey != null){
return true;
}
return false;
|
private void | populate()
populate(false);
|
private synchronized AssertionFitness | populate(boolean isServer)
if(!populated){
String tmp = getAttributeValue(itQname);
if(tmp != null)
includeToken = tmp;
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> paItr = as.iterator();
while(paItr.hasNext()){
PolicyAssertion assertion = paItr.next();
if(PolicyUtil.isBootstrapPolicy(assertion)){
bootstrapPolicy = assertion.getNestedPolicy();
}else if(PolicyUtil.isRequireDerivedKeys(assertion)){
rdKey = assertion;
}else if(PolicyUtil.isRequireExternalUriReference(assertion)){
if(referenceType == null){
referenceType =new HashSet<String>();
}
referenceType.add(assertion.getName().getLocalPart().intern());
}else if(PolicyUtil.isSC10SecurityContextToken(assertion)){
tokenType = assertion.getName().getLocalPart();
}else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,SecureConversationToken);
fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
}
}
}
if ( this.hasNestedAssertions() ) {
Iterator <PolicyAssertion> it = this.getNestedAssertionsIterator();
while(it.hasNext()){
PolicyAssertion assertion = it.next();
if(PolicyUtil.isIssuer(assertion)){
issuer = (Issuer)assertion;
}
}
}
populated = true;
}
return fitness;
|
public void | setIncludeToken(java.lang.String type)
Map<QName, String> attrs = this.getAttributes();
QName itQname = new QName(Constants.SECURITY_POLICY_NS, Constants.IncludeToken);
attrs.put(itQname,type);
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|