Set<Attribute> attributes = null;
Set<Subject> subjects = new TreeSet(new SubjectComparator());
subjects.addAll(reqCtx.getSubjects());
for (Subject s : subjects) {
attributes = new TreeSet(new AttributeComparator());
attributes.addAll(s.getAttributes());
for (Attribute a : attributes) {
hashAttribute(a, digest);
}
}
attributes = new TreeSet(new AttributeComparator());
attributes.addAll(reqCtx.getResource());
for (Attribute a : attributes) {
hashAttribute(a, digest);
}
attributes = new TreeSet(new AttributeComparator());
attributes.addAll(reqCtx.getAction());
for (Attribute a : attributes) {
hashAttribute(a, digest);
}
attributes = new TreeSet(new AttributeComparator());
attributes.addAll(reqCtx.getEnvironmentAttributes());
for (Attribute a : attributes) {
hashAttribute(a, digest);
}