public class PBKDF2params extends KeyDerivationParams
Constructor and Description |
---|
PBKDF2params(org.w3c.dom.Document owner) |
PBKDF2params(org.w3c.dom.Document owner, java.lang.String systemId) |
PBKDF2params(org.w3c.dom.Element element) |
PBKDF2params(org.w3c.dom.Element element, java.lang.String systemId) |
Modifier and Type | Method and Description |
---|---|
byte[] |
deriveKey(byte[] secret, int dkLen)
Derive a key from the secret
|
int |
getIterationCount()
get the Iteration count
|
int |
getKeyLength()
get the KeyLength
|
XSAlgorithmIdentifier |
getPRF()
Get the PRF algorithm
|
byte[] |
getSalt()
get the salt
|
java.lang.String |
getType()
returns "http://www.w3.org/2009/xmlenc11#pbkdf2"
|
void |
setIterationCount(int val)
Sets the Iteration count
|
void |
setKeyLength(int val)
Sets the KeyLength
|
void |
setPRF(java.lang.String prf)
Set the PRF algorithm
|
void |
setPRF(XSAlgorithmIdentifier prf)
Set the PRF algorithm
|
void |
setSalt(byte[] val)
Sets the salt
|
void |
setToDefaultParameters()
Set default values of the parameters
|
getInstance
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public PBKDF2params(org.w3c.dom.Document owner, java.lang.String systemId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public PBKDF2params(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public PBKDF2params(org.w3c.dom.Element element, java.lang.String systemId) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public PBKDF2params(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
public java.lang.String getType()
getType
in class KeyDerivationParams
public int getIterationCount()
public void setIterationCount(int val)
val
-public int getKeyLength()
public void setKeyLength(int val)
val
-public byte[] getSalt()
public void setSalt(byte[] val)
val
-public XSAlgorithmIdentifier getPRF()
public void setPRF(java.lang.String prf)
val
-public void setPRF(XSAlgorithmIdentifier prf)
val
-public byte[] deriveKey(byte[] secret, int dkLen) throws XECipherException
KeyDerivationParams
deriveKey
in class KeyDerivationParams
secret
- the input secret valuedkLen
- the desired length in bytes of the key to be derivedXECipherException
public void setToDefaultParameters()
KeyDerivationParams
setToDefaultParameters
in class KeyDerivationParams