Package de.christofreichardt.jca.shamir
Class ShamirsProtection
- java.lang.Object
-
- de.christofreichardt.jca.shamir.ShamirsProtection
-
- All Implemented Interfaces:
KeyStore.ProtectionParameter,Destroyable
public class ShamirsProtection extends Object implements KeyStore.ProtectionParameter, Destroyable
-
-
Constructor Summary
Constructors Constructor Description ShamirsProtection(Path[] paths)Creates a Shamir protection parameter by providing the paths to the different slices containing the shares.ShamirsProtection(Collection<Path> paths)ShamirsProtection(javax.json.JsonArray slices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()char[]getPassword()booleanisDestroyed()
-
-
-
Constructor Detail
-
ShamirsProtection
public ShamirsProtection(Path[] paths)
Creates a Shamir protection parameter by providing the paths to the different slices containing the shares.- Parameters:
paths- path array to the JSON files (slices) containing the shares
-
ShamirsProtection
public ShamirsProtection(Collection<Path> paths)
-
ShamirsProtection
public ShamirsProtection(javax.json.JsonArray slices)
-
-
Method Detail
-
getPassword
public char[] getPassword()
-
destroy
public void destroy() throws DestroyFailedException- Specified by:
destroyin interfaceDestroyable- Throws:
DestroyFailedException
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyedin interfaceDestroyable
-
-