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
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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–2021 cn.gtmap. All rights reserved.