-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.Encrypter
public class Encrypters.MessageDigestEncrypter extends AbstractEncrypter
基于消息摘要的加密器。不支持解密。不需要指定密钥。
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringalgorithmprivate final StringcomponentIdprivate final Map<String, Object>componentParams
-
Constructor Summary
Constructors Constructor Description Encrypters.MessageDigestEncrypter(String algorithm)
-
Method Summary
Modifier and Type Method Description final StringgetAlgorithm()StringgetComponentId()Map<String, Object>getComponentParams()ByteArrayencrypt(ByteArray value, ByteArray secret)加密指定的字节数组。 ByteArraydecrypt(ByteArray value, ByteArray secret)解密指定的字节数组。某些加密算法可能不支持解密。 -
Methods inherited from class icu.windea.breezeframework.core.component.Encrypters.MessageDigestEncrypter
equals, hashCode, toString -
Methods inherited from class icu.windea.breezeframework.core.component.AbstractEncrypter
componentCopy -
Methods inherited from class icu.windea.breezeframework.core.component.Encrypter
componentEquals, componentHashcode, componentToString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Encrypters.MessageDigestEncrypter
Encrypters.MessageDigestEncrypter(String algorithm)
-
-
Method Detail
-
getAlgorithm
final String getAlgorithm()
-
getComponentId
String getComponentId()
-
getComponentParams
Map<String, Object> getComponentParams()
-
-
-
-