com.atlassian.confluence.security.persistence.dao.hibernate
Class CryptographicKeyType
java.lang.Object
com.atlassian.hibernate.BucketClobStringType
com.atlassian.confluence.security.persistence.dao.hibernate.CryptographicKeyType
- All Implemented Interfaces:
- net.sf.hibernate.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
and PublicKey
Keys are marshalled from non-opaque encoded forms using the encryptionProvider component sourced from
the ContainerManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptographicKeyType
public CryptographicKeyType()
returnedClass
public Class returnedClass()
- Specified by:
returnedClass
in interface net.sf.hibernate.UserType
- Overrides:
returnedClass
in class BucketClobStringType
sqlTypes
public int[] sqlTypes()
- Specified by:
sqlTypes
in interface net.sf.hibernate.UserType
- Overrides:
sqlTypes
in class BucketClobStringType
nullSafeGet
public Object nullSafeGet(ResultSet resultSet,
String[] names,
Object owner)
throws SQLException
- Specified by:
nullSafeGet
in interface net.sf.hibernate.UserType
- Overrides:
nullSafeGet
in class BucketClobStringType
- Throws:
SQLException
nullSafeSet
public void nullSafeSet(PreparedStatement preparedStatement,
Object o,
int i)
throws SQLException
- Specified by:
nullSafeSet
in interface net.sf.hibernate.UserType
- Overrides:
nullSafeSet
in class BucketClobStringType
- Throws:
SQLException
Copyright © 2003-2013 Atlassian. All Rights Reserved.