All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.com.ionic.sdk.crypto.secretshare.SecretShareBucket Maven / Gradle / Ivy

Go to download

The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.

There is a newer version: 2.9.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy