cn.gtmap.estateplat.utils
类 RSATokenUtil
java.lang.Object
cn.gtmap.estateplat.utils.RSATokenUtil
public class RSATokenUtil
- extends Object
- 版本:
- 1.0, 2017/8/25
- 作者:
- hqz
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RSATokenUtil
public RSATokenUtil()
getRSAToken
public static String getRSAToken()
- 根据egov.home里的参数生成海洋局获取的token
- 返回:
- token字符串
getPublicKey
public static PublicKey getPublicKey()
decodeBase64
public static byte[] decodeBase64(String input)
throws Exception
- 抛出:
Exception
encrypt
public static String encrypt(byte[] source,
PublicKey publicKey)
throws Exception
- 抛出:
Exception
encodeBase64
public static String encodeBase64(byte[] input)
throws Exception
- 抛出:
Exception
Copyright © 2015–2020 cn.gtmap. All rights reserved.