GBAHttp: support http digest authentication via gba
Support http digest authentication via gba(General
Bootstrapping Authentication)
Change-Id: I48c9debf88d65a3037c0290cd9a767fbbe37e8a1
CRs-Fixed: 861750
diff --git a/src/org/apache/http/impl/auth/DigestScheme.java b/src/org/apache/http/impl/auth/DigestScheme.java
index 5bf955c..88f8d16 100644
--- a/src/org/apache/http/impl/auth/DigestScheme.java
+++ b/src/org/apache/http/impl/auth/DigestScheme.java
@@ -203,9 +203,9 @@
String delim = "[@]";
String[] words = s.split(delim);
boolean rv = false;
- if(words[0].equals(gbaToken)){
+ if(words[0].startsWith(gbaToken)){
rv = true;
- nafName = new String(words[1]);
+ nafName = new String(s);
}
this.log.debug("realm:"+words[0]+","+words[1]);
return rv;