java.com.ionic.sdk.crypto.secretshare.SecretShareBucket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ionic-sdk Show documentation
Show all versions of ionic-sdk Show documentation
The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.
package com.ionic.sdk.crypto.secretshare;
import java.util.Collection;
/**
* Container for configuration instructing the generator how to fold together the environment information
* to derive the protection JSON.
*/
public class SecretShareBucket {
/**
* The names of the property data elements to associate with this bucket.
*/
private final Collection keys;
/**
* The number of property data values which must match the original values to unlock the secret.
*/
private final int threshold;
/**
* Constructor.
*
* @param keys the names of the property data elements to associate with this bucket
* @param threshold the number of property data values which must match the original values to unlock the secret
*/
public SecretShareBucket(final Collection keys, final int threshold) {
this.keys = keys;
this.threshold = threshold;
}
/**
* @return the names of the property data elements to associate with this bucket
*/
public final Collection getKeys() {
return keys;
}
/**
* @return the number of property data values which must match the original values to unlock the secret
*/
public final int getThreshold() {
return threshold;
}
}