Methods Summary |
---|
public java.lang.String | getIncludeToken()
populate();
return includeTokenType;
|
public java.lang.String | getTokenId()
return id;
|
public java.util.Iterator | getTokenRefernceType()
if ( tokenRefType != null ) {
return tokenRefType.iterator();
} else {
return Collections.emptyList().iterator();
}
|
public java.lang.String | getTokenType()
populate();
return 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){
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.isSamlTokenType(assertion)){
tokenType = assertion.getName().getLocalPart().intern();
}else if(PolicyUtil.isRequireDerivedKeys(assertion)){
rdKey = assertion;
}else if(PolicyUtil.isRequireKeyIR(assertion)){
if(tokenRefType == null){
tokenRefType = new ArrayList<String>();
}
tokenRefType.add(assertion.getName().getLocalPart().intern());
} else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,SamlToken);
fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
}
}
}
populated = true;
}
return fitness;
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|