com.atlassian.confluence.security.persistence.dao.hibernate
Class CryptographicKeyType

java.lang.Object
  extended by com.atlassian.hibernate.BucketClobStringType
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.hibernate.BucketClobStringType
BucketClobStringType.LobCreatorSynchronization
 
Constructor Summary
CryptographicKeyType()
           
 
Method Summary
 Object nullSafeGet(ResultSet resultSet, String[] names, Object owner)
           
 void nullSafeSet(PreparedStatement preparedStatement, Object o, int i)
           
 Class returnedClass()
           
 int[] sqlTypes()
           
 
Methods inherited from class com.atlassian.hibernate.BucketClobStringType
deepCopy, equals, getLobHandler, isMutable, isUseSetClobAsString, isUsingHSQL, isUsingMySQL, isUsingOracle, setUseSetClobAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CryptographicKeyType

public CryptographicKeyType()
Method Detail

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–2015 Atlassian. All rights reserved.