synchronized(digest) {
digest.reset();
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) {