![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
Java
orangeox
i like cute cat
展开
-
JPBC的使用
质数双线性群可以由五元组(p,G1,G2,GT,e)来描述。可计算性(Efficiency):对于任意的u∈G1,v∈G2,存在一个与给定安全常数λ相关的多项式时间算法,可以高效地计算e(u,v);双线性(Bilinearity):对于任意的g∈G1,h∈G2,a,b∈Zp,有e(ga,hb)=e(g,h)ab;非退化性(Non-degeneracy):至少存在元素g1∈G1,g2∈G2,满足e(g1,g2)≠1;G1、G2椭圆曲线上的群。原创 2022-10-01 15:07:58 · 903 阅读 · 0 评论 -
IDEA添加依赖
IDEA原创 2022-10-01 10:22:01 · 241 阅读 · 0 评论 -
Ubuntu卸载 JAVA
sudo apt uninstall openjdk-8-jre-headlesssudo apt-get remove openjdk-8-jre-headless原创 2022-06-06 18:17:26 · 2943 阅读 · 0 评论 -
@ServerEndpoint
WebSocket@ServerEndpoint注解创建了一个服务器端的URI参考:https://www.tqwba.com/x_d/jishu/91989.html原创 2022-04-12 10:06:16 · 3192 阅读 · 0 评论 -
lombok staticConstructor = “of“
lombok staticConstructor = “of”@Data(staticConstructor = “of”)public abstract String staticConstructor()If you specify a static constructor name, then the generated constructor will be private, and instead a static factory method is created that other c原创 2022-04-30 13:51:04 · 841 阅读 · 0 评论 -
为什么Java WebSocket要用JWT
为什么Java WebSocket要用JWT在url中表示用户身份,以建立ws连接,如果没有权限控制,用户身份会被冒充。注意,token是在url里传输的,但是经过https/ssl/tls,url后面的部分是加密的,所以安全。参考:https://baijiahao.baidu.com/s?id=1689392196145742708&wfr=spider&for=pchttps://www.cnblogs.com/excelsiorly/p/15900410.html..原创 2022-04-30 15:10:55 · 822 阅读 · 0 评论 -
Springboot WebSocket
Springboot WebSocket@ServerEndpoint(“/ws/{userId}”)@ServerEndpoint(“/ws/{userId}”)@Componentpublic class WebSocketServer {onlineCountprivate static int onlineCount = 0;ConcurrentHashMapprivate static ConcurrentHashMap<String,WebSocketServer>原创 2022-05-03 10:37:31 · 619 阅读 · 0 评论