Class CryptographicKeyType
- java.lang.Object
-
- com.atlassian.hibernate.BucketClobStringType
-
- com.atlassian.confluence.security.persistence.dao.hibernate.CryptographicKeyType
-
- All Implemented Interfaces:
Serializable
,org.hibernate.usertype.UserType
public class CryptographicKeyType extends BucketClobStringType
A user type used to map a cyptographic key to a set of database fields.This type only supports instances of
PrivateKey
andPublicKey
Keys are marshalled from non-opaque encoded forms using the encryptionProvider component sourced from the
ContainerManager
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.hibernate.BucketClobStringType
BucketClobStringType.LobCreatorSynchronization
-
-
Constructor Summary
Constructors Constructor Description CryptographicKeyType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner)
void
nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Class
returnedClass()
int[]
sqlTypes()
-
Methods inherited from class com.atlassian.hibernate.BucketClobStringType
assemble, deepCopy, disassemble, equals, getLobHandler, hashCode, isMutable, isUseSetClobAsString, isUsingHSQL, isUsingMySQL, isUsingOracle, replace, setUseSetClobAsString
-
-
-
-
Method Detail
-
returnedClass
public Class returnedClass()
- Specified by:
returnedClass
in interfaceorg.hibernate.usertype.UserType
- Overrides:
returnedClass
in classBucketClobStringType
-
sqlTypes
public int[] sqlTypes()
- Specified by:
sqlTypes
in interfaceorg.hibernate.usertype.UserType
- Overrides:
sqlTypes
in classBucketClobStringType
-
nullSafeGet
public Object nullSafeGet(ResultSet rs, String[] names, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws SQLException
- Specified by:
nullSafeGet
in interfaceorg.hibernate.usertype.UserType
- Overrides:
nullSafeGet
in classBucketClobStringType
- Throws:
SQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, Object value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws SQLException
- Specified by:
nullSafeSet
in interfaceorg.hibernate.usertype.UserType
- Overrides:
nullSafeSet
in classBucketClobStringType
- Throws:
SQLException
-
-