com.sap.security.core.server.securestorage
Class SecureStorageObject
java.lang.Object
|
+--com.sap.security.core.server.securestorage.SecureStorageObject
- All Implemented Interfaces:
- java.io.Serializable
- public class SecureStorageObject
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Constructor Summary |
SecureStorageObject(byte[] serializedObjectBytes)
Constructor, which is able to construct a SecureStorageObject out of bytes after the serialize()-method was called |
SecureStorageObject(int objectModelVersion,
java.lang.String secretKeyID,
byte[] encryptedObject)
Standard-Constructor: Constructs a SecureStorageObject with the given parameters |
|
Method Summary |
byte[] |
getEncryptedData()
Returns the encrypted-data |
int |
getObjectModelVersion()
Returns the modelling-version of the SecureStorageObject |
java.lang.String |
getSecretKeyID()
Returns the ID of the key the object was encrypted with |
byte[] |
serialize()
Serializes a SecureStorageObject to byte[] form |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureStorageObject
public SecureStorageObject(byte[] serializedObjectBytes)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Constructor, which is able to construct a SecureStorageObject out of bytes after the serialize()-method was called
- Parameters:
serializedObjectBytes - - Throws:
java.io.IOException - java.lang.ClassNotFoundException -
SecureStorageObject
public SecureStorageObject(int objectModelVersion,
java.lang.String secretKeyID,
byte[] encryptedObject)
- Standard-Constructor: Constructs a SecureStorageObject with the given parameters
- Parameters:
objectModelVersion - secretKeyID - encryptedObject -
serialize
public byte[] serialize()
throws java.io.IOException,
java.lang.ClassNotFoundException
- Serializes a SecureStorageObject to byte[] form
- Returns:
- byte[]
- Throws:
java.io.IOException - java.lang.ClassNotFoundException -
getEncryptedData
public byte[] getEncryptedData()
- Returns the encrypted-data
- Returns:
- byte[]
getObjectModelVersion
public int getObjectModelVersion()
- Returns the modelling-version of the SecureStorageObject
- Returns:
- int
getSecretKeyID
public java.lang.String getSecretKeyID()
- Returns the ID of the key the object was encrypted with
- Returns:
- String