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
Method Summary |
java.lang.Object |
nullSafeGet(java.sql.ResultSet resultSet,
java.lang.String[] names,
java.lang.Object owner)
|
void |
nullSafeSet(java.sql.PreparedStatement preparedStatement,
java.lang.Object o,
int i)
|
java.lang.Class |
returnedClass()
|
int[] |
sqlTypes()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptographicKeyType
public CryptographicKeyType()
returnedClass
public java.lang.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 java.lang.Object nullSafeGet(java.sql.ResultSet resultSet,
java.lang.String[] names,
java.lang.Object owner)
throws java.sql.SQLException
- Specified by:
nullSafeGet
in interface net.sf.hibernate.UserType
- Overrides:
nullSafeGet
in class BucketClobStringType
- Throws:
java.sql.SQLException
nullSafeSet
public void nullSafeSet(java.sql.PreparedStatement preparedStatement,
java.lang.Object o,
int i)
throws java.sql.SQLException
- Specified by:
nullSafeSet
in interface net.sf.hibernate.UserType
- Overrides:
nullSafeSet
in class BucketClobStringType
- Throws:
java.sql.SQLException
Copyright © 2003-2014 Atlassian. All Rights Reserved.