public class KBKDFDerivedKey extends NativeEnclosure
mPointer, mPointerSize
Constructor and Description |
---|
KBKDFDerivedKey() |
KBKDFDerivedKey(CKAttribute[] attrs) |
Modifier and Type | Method and Description |
---|---|
protected void |
acquireNativeResources()
Allocate native resources, setting mPointer and mPointerSize as
appropriate.
|
protected void |
acquireNativeResourcesInternal() |
void |
addAttribute(CKAttribute attr) |
javax.crypto.SecretKey |
getKey(javax.crypto.SecretKey parent,
long mech,
boolean temporary) |
protected void |
releaseNativeResources()
Called to deallocate native resources; note that mPointer.close()
is called afterwards.
|
protected void |
releaseNativeResourcesInternal() |
void |
setAttributes(CKAttribute[] attrs) |
close, finalize, open
public KBKDFDerivedKey()
public KBKDFDerivedKey(CKAttribute[] attrs) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void setAttributes(CKAttribute[] attrs) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void addAttribute(CKAttribute attr) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected void acquireNativeResources() throws java.lang.Exception
NativeEnclosure
acquireNativeResources
in class NativeEnclosure
java.lang.Exception
protected void releaseNativeResources() throws java.lang.Exception
NativeEnclosure
releaseNativeResources
in class NativeEnclosure
java.lang.Exception
public javax.crypto.SecretKey getKey(javax.crypto.SecretKey parent, long mech, boolean temporary) throws java.lang.Exception
java.lang.Exception
protected void acquireNativeResourcesInternal() throws java.lang.Exception
java.lang.Exception
protected void releaseNativeResourcesInternal() throws java.lang.Exception
java.lang.Exception