Java Code Examples for org.pac4j.jwt.config.encryption.SecretEncryptionConfiguration

The following examples show how to use org.pac4j.jwt.config.encryption.SecretEncryptionConfiguration. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: springboot-shiro-cas-mybatis   Source File: ShiroConfiguration.java    License: MIT License 4 votes vote down vote up
/**
    * JWT Token 生成器,对CommonProfile生成然后每次携带token访问
    * @return
    */
   @SuppressWarnings("rawtypes")
@Bean
   protected JwtGenerator jwtGenerator() {
       return new JwtGenerator(new SecretSignatureConfiguration(salt), new SecretEncryptionConfiguration(salt));
   }
 
Example 2
Source Project: wolf   Source File: ShiroConfiguration.java    License: MIT License 4 votes vote down vote up
/**
 * JWT Token 生成器,对CommonProfile生成然后每次携带token访问
 * @return
 */
@Bean
protected JwtGenerator jwtGenerator() {
    return new JwtGenerator(new SecretSignatureConfiguration(salt), new SecretEncryptionConfiguration(salt));
}