Get methods throw IllegalStateException if destroy() is called.
| Modifier and Type | Field and Description |
|---|---|
| private volatile AlgorithmParameterSpec | |
| private final boolean | |
| private final AtomicBoolean | |
| private volatile byte[] |
| Access | Constructor and Description |
|---|---|
| public | HybridValueParameterSpec(byte[]
a shared secret to be concatenated with the agreement's Z value. t, AlgorithmParameterSpec the base spec for the agreements KDF. baseSpec)Create a spec with T set to t and the spec for the KDF in the agreement to baseSpec. |
| public | HybridValueParameterSpec(byte[]
a shared secret to be concatenated with the agreement's Z value. t, boolean doPrepend, AlgorithmParameterSpec the base spec for the agreements KDF. baseSpec)Create a spec with T set to t and the spec for the KDF in the agreement to baseSpec. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | destroy()
Overrides default javax. Destroy this parameter spec, explicitly erasing its contents. |
| public AlgorithmParameterSpec | |
| public byte[] | |
| public boolean | Returns: true if destroyed, false otherwise.Overrides default javax. Return true if the destroy() method is called and the contents are erased. |
| public boolean | Returns: true if T to be prepended, false otherwise.Return whether or not T should be prepended. |
| baseSpec | back to summary |
|---|---|
| private volatile AlgorithmParameterSpec baseSpec | |
| doPrepend | back to summary |
|---|---|
| private final boolean doPrepend | |
| hasBeenDestroyed | back to summary |
|---|---|
| private final AtomicBoolean hasBeenDestroyed | |
| t | back to summary |
|---|---|
| private volatile byte[] t | |
| HybridValueParameterSpec | back to summary |
|---|---|
| public HybridValueParameterSpec(byte[] t, AlgorithmParameterSpec baseSpec) Create a spec with T set to t and the spec for the KDF in the agreement to baseSpec. Note the t value is not copied.
| |
| HybridValueParameterSpec | back to summary |
|---|---|
| public HybridValueParameterSpec(byte[] t, boolean doPrepend, AlgorithmParameterSpec baseSpec) Create a spec with T set to t and the spec for the KDF in the agreement to baseSpec. Note the t value is not copied.
| |
| checkDestroyed | back to summary |
|---|---|
| private void checkDestroyed() | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides default javax. Destroy this parameter spec, explicitly erasing its contents. | |
| getBaseParameterSpec | back to summary |
|---|---|
| public AlgorithmParameterSpec getBaseParameterSpec() Return the base parameter spec.
| |
| getT | back to summary |
|---|---|
| public byte[] getT() Return a reference to the T value.
| |
| isDestroyed | back to summary |
|---|---|
| public boolean isDestroyed() Overrides default javax. Return true if the destroy() method is called and the contents are erased.
| |
| isPrependedT | back to summary |
|---|---|
| public boolean isPrependedT() Return whether or not T should be prepended.
| |