cn.gtmap.estateplat.utils
类 RSATokenUtil

java.lang.Object
  继承者 cn.gtmap.estateplat.utils.RSATokenUtil

public class RSATokenUtil
extends Object

版本:
1.0, 2017/8/25
作者:
hqz

构造方法摘要
RSATokenUtil()
           
 
方法摘要
static byte[] decodeBase64(String input)
           
static String encodeBase64(byte[] input)
           
static String encrypt(byte[] source, PublicKey publicKey)
           
static PublicKey getPublicKey()
           
static String getRSAToken()
          根据egov.home里的参数生成海洋局获取的token
 
从类 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.