# EncryptedBinaryColumnType

class EncryptedBinaryColumnType(encryptor: Encryptor, length: Int) : ColumnWithTransform<ByteArray, ByteArray>

Binary column for storing encrypted binary strings of a specific length, using the provided encryptor.

#### Samples

    import org.jetbrains.exposed.sql.Column
    import org.jetbrains.exposed.sql.Table

    fun main() {
       //sampleStart
       registerColumn(name, EncryptedBinaryColumnType(encryptor, cipherByteLength))
       //sampleEnd
    }

## Constructors

EncryptedBinaryColumnType
Link copied to clipboard
constructor(encryptor: Encryptor, length: Int)

## Properties

delegate
Link copied to clipboard
val delegate: IColumnType<ByteArray>
nullable
Link copied to clipboard
open override var nullable: Boolean
originalColumnType
Link copied to clipboard
val originalColumnType: IColumnType<Any>
transformer
Link copied to clipboard
val transformer: ColumnTransformer<ByteArray, ByteArray>

## Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
nonNullValueAsDefaultString
Link copied to clipboard
open fun nonNullValueAsDefaultString(value: ByteArray): String
nonNullValueToString
Link copied to clipboard
open fun nonNullValueToString(value: ByteArray): String
notNullValueToDB
Link copied to clipboard
open override fun notNullValueToDB(value: ByteArray): Any
parameterMarker
Link copied to clipboard
open fun parameterMarker(value: ByteArray?): String
readObject
Link copied to clipboard
open fun readObject(rs: ResultSet, index: Int): Any?
setParameter
Link copied to clipboard
open override fun setParameter(stmt: PreparedStatementApi, index: Int, value: Any?)
sqlType
Link copied to clipboard
open override fun sqlType(): String
toString
Link copied to clipboard
open override fun toString(): String
unwrapRecursive
Link copied to clipboard
open fun unwrapRecursive(value: ByteArray?): Any?
validateValueBeforeUpdate
Link copied to clipboard
open fun validateValueBeforeUpdate(value: ByteArray?)
valueAsDefaultString
Link copied to clipboard
open fun valueAsDefaultString(value: ByteArray?): String
valueFromDB
Link copied to clipboard
open override fun valueFromDB(value: Any): ByteArray?
valueToDB
Link copied to clipboard
open override fun valueToDB(value: ByteArray?): Any?
valueToString
Link copied to clipboard
open fun valueToString(value: ByteArray?): String