|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.higgins.cardstore.schemas._2005._05.identity.impl.EncryptedStore
| Field Summary | |
|---|---|
static String |
copyright
|
| Constructor Summary | |
|---|---|
EncryptedStore()
Construct an empty EncryptedStore |
|
EncryptedStore(byte[] crdsBytes)
|
|
| Method Summary | |
|---|---|
void |
fromXml(Object obj)
|
byte[] |
getByteOrderMark()
Returns the the byte order marker for the CRDS file. |
Object |
getParent()
|
IRoamingStore |
getRoamingStore(PasswordCallback passwdCallback)
Returns a RoamingStore object. |
Document |
getRootDocument()
|
byte[] |
getStoreSalt()
This method will return the store salt. |
static void |
main(String[] args)
|
byte[][] |
makeKeys(char[] password,
byte[] salt)
This method will return an array of byte arrays that contains two sets of key data. |
void |
setParent(Object parent)
|
void |
setRoamingStore(IRoamingStore roamingStore)
This method is used to replace or add a roaming store that the encrypted store is based on. |
Object |
toXml()
|
byte[] |
toXml(PasswordCallback passwdCallback)
Returns the bytes that should be written our to a CRDS file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String copyright
| Constructor Detail |
public EncryptedStore()
public EncryptedStore(byte[] crdsBytes)
throws UnsupportedObjectModel,
ExpectedObjectNotPresent
| Method Detail |
public Object getParent()
getParent in interface XMLSerializerpublic void setParent(Object parent)
setParent in interface XMLSerializerpublic byte[] getByteOrderMark()
IEncryptedStore{0xEF, 0xBB, 0xBF}.
getByteOrderMark in interface IEncryptedStorepublic byte[] getStoreSalt()
IEncryptedStore
getStoreSalt in interface IEncryptedStore
public byte[][] makeKeys(char[] password,
byte[] salt)
throws UnsupportedEncodingException,
NoSuchAlgorithmException
password - salt -
UnsupportedEncodingException
NoSuchAlgorithmException
public IRoamingStore getRoamingStore(PasswordCallback passwdCallback)
throws StoreDecryptionException
IEncryptedStore
getRoamingStore in interface IEncryptedStorepasswdCallback - the required password to decrypt the store.
StoreDecryptionException
public void fromXml(Object obj)
throws UnsupportedObjectModel,
ExpectedObjectNotPresent
fromXml in interface XMLSerializerUnsupportedObjectModel
ExpectedObjectNotPresentpublic Object toXml()
toXml in interface XMLSerializer
public byte[] toXml(PasswordCallback passwdCallback)
throws StoreEncryptionException
toXml in interface IEncryptedStorepasswdCallback - The password is required to encrypt the store
StoreEncryptionExceptionpublic Document getRootDocument()
public static void main(String[] args)
throws Exception
Exceptionpublic void setRoamingStore(IRoamingStore roamingStore)
IEncryptedStore
setRoamingStore in interface IEncryptedStoreroamingStore -
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||