类io.jsonwebtoken.lang.RuntimeEnvironment源码实例Demo

下面列出了怎么用io.jsonwebtoken.lang.RuntimeEnvironment的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: juiser   文件: ConfigJwkResolver.java
protected Function<Resource, Key> createResourceKeyFunction(Resource keyResource, boolean keyStringSpecified) {

        if (!isClassAvailable("org.bouncycastle.openssl.PEMParser")) {

            String msg = "The org.bouncycastle:bcpkix-jdk15on:1.56 artifact (or newer) must be in the " +
                "classpath to be able to parse the " +
                (keyStringSpecified ?
                    "juiser.header.jwt.key.value PEM-encoded value" :
                    "juiser.header.jwt.key.resource [" + keyResource + "].");
            throw new IllegalStateException(msg);
        } else {
            RuntimeEnvironment.enableBouncyCastleIfPossible();
        }

        return new PemResourceKeyResolver();
    }
 
源代码2 项目: lams   文件: SignatureProvider.java
protected boolean isBouncyCastleAvailable() {
    return RuntimeEnvironment.BOUNCY_CASTLE_AVAILABLE;
}
 
源代码3 项目: jjwt   文件: SignatureProvider.java
protected boolean isBouncyCastleAvailable() {
    return RuntimeEnvironment.BOUNCY_CASTLE_AVAILABLE;
}
 
 类所在包
 类方法