public abstract class AbstractEncryptService extends Object implements EncryptService, org.springframework.beans.factory.InitializingBean
| 构造器和说明 |
|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethodpublic String getKey()
public void setKey(String key)
public String getEncryptKey()
public void setEncryptKey(String encryptKey)
public String getDecryptKey()
public void setDecryptKey(String decryptKey)
public String encrypt(String str)
encrypt 在接口中 EncryptServicepublic String decrypt(String str)
decrypt 在接口中 EncryptServicepublic byte[] encrypt(byte[] bytes)
encrypt 在接口中 EncryptServicepublic byte[] decrypt(byte[] bytes)
decrypt 在接口中 EncryptServicepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionprotected abstract Cipher initEncryptCipher(byte[] key) throws GeneralSecurityException
protected abstract Cipher initDecryptCipher(byte[] key) throws GeneralSecurityException
Copyright © 2015–2021 cn.gtmap. All rights reserved.