// If collection is null, continue to avoid an NPE
// See Bugzilla 30624
if ( collection == null) {
- continue;
+ continue;
}
if (log.isDebugEnabled()) {
log.debug(" Checking constraint '" + constraints[i] +
"' against " + method + " " + uri + " --> " +
constraints[i].included(uri, method));
- }
+ }
for(int j=0; j < collection.length; j++){
String [] patterns = collection[j].findPatterns();
// If patterns is null, continue to avoid an NPE
// See Bugzilla 30624
if ( patterns == null) {
- continue;
+ continue;
}
for(int k=0; k < patterns.length; k++) {
// If collection is null, continue to avoid an NPE
// See Bugzilla 30624
if ( collection == null) {
- continue;
+ continue;
}
if (log.isDebugEnabled()) {
log.debug(" Checking constraint '" + constraints[i] +
"' against " + method + " " + uri + " --> " +
constraints[i].included(uri, method));
- }
+ }
for(int j=0; j < collection.length; j++){
String [] patterns = collection[j].findPatterns();
// If patterns is null, continue to avoid an NPE
// See Bugzilla 30624
if ( patterns == null) {
- continue;
+ continue;
}
boolean matched = false;
// If collection is null, continue to avoid an NPE
// See Bugzilla 30624
if ( collection == null) {
- continue;
+ continue;
}
if (log.isDebugEnabled()) {
log.debug(" Checking constraint '" + constraints[i] +
"' against " + method + " " + uri + " --> " +
constraints[i].included(uri, method));
- }
+ }
boolean matched = false;
int pos = -1;
// If patterns is null, continue to avoid an NPE
// See Bugzilla 30624
if ( patterns == null) {
- continue;
+ continue;
}
for(int k=0; k < patterns.length && !matched; k++) {
// If collection is null, continue to avoid an NPE
// See Bugzilla 30624
if ( collection == null) {
- continue;
+ continue;
}
if (log.isDebugEnabled()) {
log.debug(" Checking constraint '" + constraints[i] +
"' against " + method + " " + uri + " --> " +
constraints[i].included(uri, method));
- }
+ }
for(int j=0; j < collection.length; j++){
String [] patterns = collection[j].findPatterns();
// If patterns is null, continue to avoid an NPE
// See Bugzilla 30624
if ( patterns == null) {
- continue;
+ continue;
}
boolean matched = false;
}
}
- if (hasMessageDigest()) {
- // Use pre-generated digest
- return getPassword(username);
- }
-
+ if (hasMessageDigest()) {
+ // Use pre-generated digest
+ return getPassword(username);
+ }
+
String digestValue = username + ":" + realmName + ":"
+ getPassword(username);