Methods Summary |
---|
public java.lang.Object | clone()
throw new UnsupportedOperationException();
|
public java.lang.String | getIncludeToken()
populate();
return includeToken;
|
public java.lang.String | getTokenId()
return id;
|
public java.lang.String | getType()
populate();
return tokenType;
|
public boolean | hasPassword()
return hasPassword;
|
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.isUsernameTokenType(assertion)){
tokenType = assertion.getName().getLocalPart();
}else if(PolicyUtil.hasPassword(assertion)){
hasPassword = false;
}else{
if(!assertion.isOptional()){
log_invalid_assertion(assertion, isServer,"UsernameToken");
fitness = AssertionFitness.HAS_UNKNOWN_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 void | setTokenId(java.lang.String _id)
this.id = _id;
|
public void | setType(java.lang.String type)
this.tokenType = type;
|
public AssertionFitness | validate(boolean isServer)
return populate(isServer);
|