示例#1
0
文件: SAuth.java 项目: nypgit/alto
 public java.lang.String validateSAuthUIDHeaderString(HttpRequest request) {
   return request.validateHeaderString(Header.SAuth.UID);
 }
示例#2
0
文件: SAuth.java 项目: nypgit/alto
 public java.lang.String validateSAuthNonceHeaderString(HttpRequest request) {
   java.lang.String re = request.validateHeaderString(Header.SAuth.Nonce);
   java.math.BigInteger value = request.getHeaderHex(Header.SAuth.Nonce);
   if (null != value && 14 < value.bitLength()) return re;
   else throw new alto.sys.BadRequestException(re);
 }
示例#3
0
文件: SAuth.java 项目: nypgit/alto
 public java.lang.String validateSAuthVersionHeaderString(HttpRequest request) {
   java.lang.String re = request.validateHeaderString(Header.SAuth.Version);
   if (null != re && re.equals(Header.SAuth.Value.Version.toString())) {
     return re;
   } else throw new alto.sys.BadRequestException(re);
 }