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
 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 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 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.