public class ECDHESAgreementMethod extends AgreementMethod
| Constructor and Description |
|---|
ECDHESAgreementMethod(org.w3c.dom.Document doc) |
ECDHESAgreementMethod(org.w3c.dom.Element element) |
ECDHESAgreementMethod(org.w3c.dom.Element element,
java.lang.String systemId) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateKeyMaterial(XEEncryptionMethod encMtd,
java.security.PrivateKey loKey,
java.security.PublicKey opKey)
Generate keying material for the algorithm specified in the given
XEEncryptionMethod
object. |
java.lang.String |
getType()
Returns the type URI that identifies the specific KeyInfoData
subclass.
|
void |
setAlgorithm(java.lang.String algURI)
Set the algorithm URI attribute for this AgreementMethod element.
|
java.security.KeyPair |
setToDefaultParameters(java.security.KeyPair originatorKeyPair,
java.security.PublicKey recipientKey,
java.lang.String keyDerivationAlgURI)
Populate the AgreementMethod with default values
|
getAlgorithm, getDigestMethod, getInstance, getInstance, getInstance, getKANonce, getKeyDerivationMethod, getOriginatorKeyInfo, getRecipientKeyInfo, setDigestMethod, setDigestMethod, setKANonce, setKeyDerivationMethod, setOriginatorKeyInfo, setRecipientKeyInfoaddNSPrefixAttr, 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, setDefaultNSPrefixappendChild, 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, toStringXMLpublic ECDHESAgreementMethod(org.w3c.dom.Document doc)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic ECDHESAgreementMethod(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic ECDHESAgreementMethod(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMExceptionpublic java.lang.String getType()
KeyInfoDataInterface XMLURI contains the KeyInfo data type URIs
defined in the XML Signature and XML Encryption namespaces, including:
XMLURI.obj_DHKeyValueXMLURI.obj_DSAKeyValueXMLURI.obj_EncryptedKeyXMLURI.obj_KeyNameXMLURI.obj_MgmtDataXMLURI.obj_PGPDataXMLURI.obj_rawX509CertificateXMLURI.obj_RetrievalMethodXMLURI.obj_RSAKeyValueXMLURI.obj_SPKIDataXMLURI.obj_X509Datapublic void setAlgorithm(java.lang.String algURI)
AgreementMethodsetAlgorithm in class AgreementMethodalgURI - The algorithm URI identifying the key agreement algorithmpublic byte[] generateKeyMaterial(XEEncryptionMethod encMtd, java.security.PrivateKey loKey, java.security.PublicKey opKey) throws XESchemaException, XECipherException
AgreementMethodXEEncryptionMethod
object.generateKeyMaterial in class AgreementMethodencMtd - An XEEncryptionMethod specifys the encryption algorithm the
keying material intended for.loKey - The local party private key.opKey - The other party public key.XESchemaExceptionXECipherExceptionpublic java.security.KeyPair setToDefaultParameters(java.security.KeyPair originatorKeyPair,
java.security.PublicKey recipientKey,
java.lang.String keyDerivationAlgURI)
throws XECipherException
AgreementMethodsetToDefaultParameters in class AgreementMethodXECipherException