Class SM3EncryptAlgorithm
- java.lang.Object
-
- org.apache.shardingsphere.encrypt.sm.algorithm.SM3EncryptAlgorithm
-
- All Implemented Interfaces:
StandardEncryptAlgorithm<Object,String>,EncryptAlgorithm<Object,String>,org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm,org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
public final class SM3EncryptAlgorithm extends Object implements StandardEncryptAlgorithm<Object,String>
SM3 encrypt algorithm.
-
-
Constructor Summary
Constructors Constructor Description SM3EncryptAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectdecrypt(String cipherValue, EncryptContext encryptContext)Stringencrypt(Object plainValue, EncryptContext encryptContext)StringgetType()voidinit(Properties props)
-
-
-
Method Detail
-
init
public void init(Properties props)
- Specified by:
initin interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
encrypt
public String encrypt(Object plainValue, EncryptContext encryptContext)
- Specified by:
encryptin interfaceEncryptAlgorithm<Object,String>
-
decrypt
public Object decrypt(String cipherValue, EncryptContext encryptContext)
- Specified by:
decryptin interfaceStandardEncryptAlgorithm<Object,String>
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
-