SpnegoContextTokenpublic class SpnegoContextToken extends com.sun.xml.ws.policy.PolicyAssertion implements com.sun.xml.ws.security.policy.SecurityAssertionValidator, com.sun.xml.ws.security.policy.SpnegoContextToken
Fields Summary |
---|
private boolean | populated | private com.sun.xml.ws.policy.PolicyAssertion | rdKey | Boolean | requiredDerivedKeys | private String | includeTokenType | private String | id | private Issuer | issuer | private static QName | itQname | private AssertionFitness | fitness |
Methods Summary |
---|
public java.lang.String | getIncludeToken()
populate();
return includeTokenType;
| public Issuer | getIssuer()
populate();
return this.issuer;
| public java.lang.String | getTokenId()
return id;
| public boolean | isRequireDerivedKeys()
populate();
if (rdKey != null ) {
return true;
}
return false;
| private void | populate()
populate(false);
| private synchronized AssertionFitness | populate(boolean isServer)
if(!populated){
NestedPolicy policy = this.getNestedPolicy();
if(this.getAttributeValue(itQname) != null){
includeTokenType = this.getAttributeValue(itQname);
}
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.isRequireDerivedKeys(assertion)){
rdKey = assertion;
} else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,"SpnegoContextToken");
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 AssertionFitness | validate(boolean isServer)
return populate(isServer);
|
|