Methods Summary |
---|
public void | addTokenReferenceType(java.lang.String tokenRefType)
referenceType.add(tokenRefType);
|
public java.lang.Object | clone()
throw new UnsupportedOperationException("Fix me");
//return new X509Token(this.nestedPolicy,getAttributes(),id);
|
public java.lang.String | getIncludeToken()
populate();
return includeToken;
|
public java.lang.String | getTokenId()
return id;
|
public java.util.Set | getTokenRefernceType()
populate();
return referenceType;
|
public java.lang.String | getTokenType()
populate();
return tokenType;
|
public boolean | isRequireDerivedKeys()
populate();
return reqDK;
|
private void | populate()
populate(false);
|
private synchronized AssertionFitness | populate(boolean isServer)
if(!populated){
if(this.getAttributeValue(itQname)!=null){
this.includeToken = this.getAttributeValue(itQname);
}
NestedPolicy policy = this.getNestedPolicy();
if(policy == null){
if(logger.getLevel() == Level.FINE){
logger.log(Level.FINE,"NestedPolicy is null");
}
populated = true;
return fitness;
}
AssertionSet assertionSet = policy.getAssertionSet();
for(PolicyAssertion assertion: assertionSet){
if(PolicyUtil.isTokenReferenceType(assertion)){
referenceType.add(assertion.getName().getLocalPart().intern());
}else if(PolicyUtil.isTokenType(assertion)) {
tokenType = assertion.getName().getLocalPart();
}else if (PolicyUtil.isRequireDerivedKeys(assertion)) {
reqDK = true;
}else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,"X509Token");
fitness = AssertionFitness.HAS_UNKNOWN_ASSERTION;
}
}
}
populated = true;
}
return fitness;
|
public void | setIncludeToken(java.lang.String type)
includeToken = type;
|
public void | setTokenType(java.lang.String tokenType)
this.tokenType = tokenType;
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|