- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.jetdrone.vertx.yoke.YokeSecurity
类的一些代码示例,展示了YokeSecurity
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YokeSecurity
类的具体详情如下:
包路径:com.jetdrone.vertx.yoke.YokeSecurity
类名称:YokeSecurity
暂无
代码示例来源:origin: pmlopes/yoke
public JWT(final YokeSecurity security) {
Map<String, Crypto> tmp = new HashMap<>();
try {
tmp.put("HS256", new CryptoMac(security.getMac("HS256")));
} catch (RuntimeException e) {
// Algorithm not supported
}
try {
tmp.put("HS384", new CryptoMac(security.getMac("HS384")));
} catch (RuntimeException e) {
// Algorithm not supported
}
try {
tmp.put("HS512", new CryptoMac(security.getMac("HS512")));
} catch (RuntimeException e) {
// Algorithm not supported
}
try {
tmp.put("RS256", new CryptoSignature(security.getSignature("RS256")));
} catch (RuntimeException e) {
// Algorithm not supported
}
CRYPTO_MAP = Collections.unmodifiableMap(tmp);
}
代码示例来源:origin: pmlopes/yoke
/**
* Returns the original value is the signature is correct. Null otherwise.
*/
public static String unsign(@NotNull String val, @NotNull Mac mac) {
int idx = val.lastIndexOf('.');
if (idx == -1) {
return null;
}
String str = val.substring(0, idx);
if (val.equals(sign(str, mac))) {
return str;
}
return null;
}
代码示例来源:origin: pmlopes/yoke
public YokeCookie(@NotNull final Cookie nettyCookie, final Mac mac) {
this.nettyCookie = nettyCookie;
this.mac = mac;
// get the original value
value = nettyCookie.value();
// if the prefix is there then it is signed
if (value.startsWith("s:")) {
signed = true;
// if it is signed get the unsigned value
if (mac == null) {
// this is an error
value = null;
} else {
value = YokeSecurity.unsign(value.substring(2), mac);
}
}
}
代码示例来源:origin: pmlopes/yoke
app.secretSecurity("keyboard cat");
final Mac hmac = app.security().getMac("HmacSHA256");
代码示例来源:origin: pmlopes/yoke
public void sign() {
if (mac != null) {
nettyCookie.setValue("s:" + YokeSecurity.sign(value, mac));
signed = true;
} else {
signed = false;
}
}
本文整理了Java中com.jetdrone.vertx.yoke.Yoke.security()方法的一些代码示例,展示了Yoke.security()的具体用法。这些代码示例主要来源于Github
本文整理了Java中com.jetdrone.vertx.yoke.Yoke.()方法的一些代码示例,展示了Yoke.()的具体用法。这些代码示例主要来源于Github/Stackoverflow/M
本文整理了Java中com.jetdrone.vertx.yoke.Yoke.vertx()方法的一些代码示例,展示了Yoke.vertx()的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中com.jetdrone.vertx.yoke.Yoke.use()方法的一些代码示例,展示了Yoke.use()的具体用法。这些代码示例主要来源于Github/Stackover
本文整理了Java中com.jetdrone.vertx.yoke.Yoke.listen()方法的一些代码示例,展示了Yoke.listen()的具体用法。这些代码示例主要来源于Github/Sta
本文整理了Java中com.jetdrone.vertx.yoke.Yoke类的一些代码示例,展示了Yoke类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平
本文整理了Java中com.jetdrone.vertx.yoke.YokeSecurity类的一些代码示例,展示了YokeSecurity类的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeResponse类的一些代码示例,展示了YokeResponse类的具体用法。这些代码示例主要来源于G
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeRequest类的一些代码示例,展示了YokeRequest类的具体用法。这些代码示例主要来源于Git
本文整理了Java中com.jetdrone.vertx.yoke.core.YokeAsyncResult类的一些代码示例,展示了YokeAsyncResult类的具体用法。这些代码示例主要来源于G
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeResponse.putHeader()方法的一些代码示例,展示了YokeResponse.putHe
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeResponse.redirect()方法的一些代码示例,展示了YokeResponse.redire
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeResponse.end()方法的一些代码示例,展示了YokeResponse.end()的具体用法。
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeResponse.setContentType()方法的一些代码示例,展示了YokeResponse.
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeResponse.headers()方法的一些代码示例,展示了YokeResponse.headers
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeResponse.setStatusCode()方法的一些代码示例,展示了YokeResponse.s
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeResponse.setStatusMessage()方法的一些代码示例,展示了YokeRespons
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeRequest.formAttributes()方法的一些代码示例,展示了YokeRequest.fo
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeRequest.method()方法的一些代码示例,展示了YokeRequest.method()的具
本文整理了Java中com.jetdrone.vertx.yoke.middleware.YokeRequest.getHeader()方法的一些代码示例,展示了YokeRequest.getHead
我是一名优秀的程序员,十分优秀!