cn.gtmap.estateplat.core.encrypt
类 AbstractEncryptService

java.lang.Object
  继承者 cn.gtmap.estateplat.core.encrypt.AbstractEncryptService
所有已实现的接口:
EncryptService, org.springframework.beans.factory.InitializingBean
直接已知子类:
AESEncryptServiceImpl, DESEncryptServiceImpl, RC4EncryptServiceImpl, RSAEncryptServiceImpl

public abstract class AbstractEncryptService
extends Object
implements EncryptService, org.springframework.beans.factory.InitializingBean

.

版本:
V1.0, 2017-08-03
作者:
shenjian

构造方法摘要
AbstractEncryptService()
           
 
方法摘要
 void afterPropertiesSet()
           
 byte[] decrypt(byte[] bytes)
           
 String decrypt(String str)
           
 byte[] encrypt(byte[] bytes)
           
 String encrypt(String str)
           
 String getDecryptKey()
           
 String getEncryptKey()
           
 String getKey()
           
protected abstract  Cipher initDecryptCipher(byte[] key)
           
protected abstract  Cipher initEncryptCipher(byte[] key)
           
 void setDecryptKey(String decryptKey)
           
 void setEncryptKey(String encryptKey)
           
 void setKey(String key)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 cn.gtmap.estateplat.core.encrypt.EncryptService 继承的方法
getMethod
 

构造方法详细信息

AbstractEncryptService

public AbstractEncryptService()
方法详细信息

getKey

public String getKey()

setKey

public void setKey(String key)

getEncryptKey

public String getEncryptKey()

setEncryptKey

public void setEncryptKey(String encryptKey)

getDecryptKey

public String getDecryptKey()

setDecryptKey

public void setDecryptKey(String decryptKey)

encrypt

public String encrypt(String str)
指定者:
接口 EncryptService 中的 encrypt

decrypt

public String decrypt(String str)
指定者:
接口 EncryptService 中的 decrypt

encrypt

public byte[] encrypt(byte[] bytes)
指定者:
接口 EncryptService 中的 encrypt

decrypt

public byte[] decrypt(byte[] bytes)
指定者:
接口 EncryptService 中的 decrypt

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
指定者:
接口 org.springframework.beans.factory.InitializingBean 中的 afterPropertiesSet
抛出:
Exception

initEncryptCipher

protected abstract Cipher initEncryptCipher(byte[] key)
                                     throws GeneralSecurityException
抛出:
GeneralSecurityException

initDecryptCipher

protected abstract Cipher initDecryptCipher(byte[] key)
                                     throws GeneralSecurityException
抛出:
GeneralSecurityException


Copyright © 2015–2018 cn.gtmap. All rights reserved.