Interface EncryptAlgorithm<I,​O>

  • Type Parameters:
    I - type of plain value
    O - type of cipher value
    All Superinterfaces:
    org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm, org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
    All Known Subinterfaces:
    AssistedEncryptAlgorithm<I,​O>, LikeEncryptAlgorithm<I,​O>, StandardEncryptAlgorithm<I,​O>

    public interface EncryptAlgorithm<I,​O>
    extends org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm
    Encrypt algorithm.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      O encrypt​(I plainValue, EncryptContext encryptContext)
      Encrypt.
      • Methods inherited from interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI

        getType, getTypeAliases, init, isDefault
    • Method Detail

      • encrypt

        O encrypt​(I plainValue,
                  EncryptContext encryptContext)
        Encrypt.
        Parameters:
        plainValue - plain value
        encryptContext - encrypt context
        Returns:
        cipher value