public class HybridValueParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec, javax.security.auth.Destroyable
Get methods throw IllegalStateException if destroy() is called.
Constructor and Description |
---|
HybridValueParameterSpec(byte[] t,
java.security.spec.AlgorithmParameterSpec 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 |
---|---|
void |
destroy()
Destroy this parameter spec, explicitly erasing its contents.
|
java.security.spec.AlgorithmParameterSpec |
getBaseParameterSpec()
Return the base parameter spec.
|
byte[] |
getT()
Return a reference to the T value.
|
boolean |
isDestroyed()
Return true if the destroy() method is called and the contents are
erased.
|
public HybridValueParameterSpec(byte[] t, java.security.spec.AlgorithmParameterSpec baseSpec)
t
- a shared secret to be concatenated with the agreement's Z value.baseSpec
- the base spec for the agreements KDF.public byte[] getT()
public java.security.spec.AlgorithmParameterSpec getBaseParameterSpec()
public boolean isDestroyed()
isDestroyed
in interface javax.security.auth.Destroyable
public void destroy()
destroy
in interface javax.security.auth.Destroyable