Package de.xima.fc.security.encryption
Class FCEncryptedBinaryType
- java.lang.Object
-
- de.xima.fc.security.encryption.FCEncryptedBinaryType
-
- All Implemented Interfaces:
IFcEncryptedType,org.hibernate.usertype.UserType
- Direct Known Subclasses:
FormDataEncryptedBinaryType
public class FCEncryptedBinaryType extends Object implements IFcEncryptedType
-
-
Constructor Summary
Constructors Constructor Description FCEncryptedBinaryType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectassemble(Serializable cached, Object owner)byte[]convertToByteArr(Object object)ObjectdeepCopy(Object value)Serializabledisassemble(Object value)booleanequals(Object x, Object y)EFcEncryptionScopegetEncryptionScope()protected IDBBinaryEncryptorgetEncryptor()inthashCode(Object x)booleanisMutable()ObjectnullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner)voidnullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)Objectreplace(Object original, Object target, Object owner)ClassreturnedClass()int[]sqlTypes()
-
-
-
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
assemble
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
- Specified by:
assemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
convertToByteArr
public byte[] convertToByteArr(Object object)
-
deepCopy
public Object deepCopy(Object value) throws org.hibernate.HibernateException
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
disassemble
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
equals
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
getEncryptionScope
public EFcEncryptionScope getEncryptionScope()
- Specified by:
getEncryptionScopein interfaceIFcEncryptedType
-
hashCode
public int hashCode(Object x) throws org.hibernate.HibernateException
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType
-
nullSafeGet
public Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeSetin interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateExceptionSQLException
-
replace
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
- Specified by:
replacein interfaceorg.hibernate.usertype.UserType- Throws:
org.hibernate.HibernateException
-
returnedClass
public Class returnedClass()
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType
-
sqlTypes
public int[] sqlTypes()
- Specified by:
sqlTypesin interfaceorg.hibernate.usertype.UserType
-
getEncryptor
protected IDBBinaryEncryptor getEncryptor()
-
-