public class DefaultWxJsTicketPart extends Object implements WxJsTicketPart
DEFAULT_LENGTH
Constructor and Description |
---|
DefaultWxJsTicketPart() |
Modifier and Type | Method and Description |
---|---|
String |
nonce(int length)
考虑随机化是否有问题
|
long |
timestamp()
这里的实现是使用System.currentTimeMillis()做的,但是据说这个方法性能有问题
因为这个方法会进入内核获取当前的时间,故性能不佳。有高性能要求的朋友们,请自行使用其他方式
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nonce
public String nonce(int length)
nonce
in interface WxJsTicketPart
length
- 随机字符串长度public long timestamp()
timestamp
in interface WxJsTicketPart
Copyright © 2018 Guangshan Technology, Inc.. All rights reserved.