java.lang.Object
org.apache.xml.security.utils.ElementProxy
org.apache.xml.security.keys.KeyInfo
org.apache.xml.security.encryption.keys.KeyInfoEnc
- Direct Known Subclasses:
OriginatorKeyInfo,RecipientKeyInfo
-
Field Summary
Fields inherited from class org.apache.xml.security.utils.ElementProxy
baseURI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AgreementMethod agreementMethod) Method add AgreementMethod to the KeyInfobooleanMethod containsAgreementMethod returns true if the KeyInfo contains a AgreementMethod nodeitemAgreementMethod(int i) Method itemAgreementMethodintMethod lengthAgreementMethodMethods inherited from class org.apache.xml.security.keys.KeyInfo
add, add, add, add, add, add, add, add, add, add, add, add, add, addDEREncodedKeyValue, addKeyInfoReference, addKeyName, addKeyValue, addKeyValue, addMgmtData, addRetrievalMethod, addStorageResolver, addUnknownElement, containsDEREncodedKeyValue, containsKeyInfoReference, containsKeyName, containsKeyValue, containsMgmtData, containsPGPData, containsRetrievalMethod, containsSPKIData, containsUnknownElement, containsX509Data, getBaseLocalName, getBaseNamespace, getId, getPrivateKey, getPublicKey, getSecretKey, getX509Certificate, isEmpty, itemDEREncodedKeyValue, itemEncryptedKey, itemKeyInfoReference, itemKeyName, itemKeyValue, itemMgmtData, itemPGPData, itemRetrievalMethod, itemSPKIData, itemUnknownElement, itemX509Data, lengthDEREncodedKeyValue, lengthKeyInfoReference, lengthKeyName, lengthKeyValue, lengthMgmtData, lengthPGPData, lengthRetrievalMethod, lengthSPKIData, lengthUnknownElement, lengthX509Data, registerInternalKeyResolver, setId, setSecureValidationMethods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
Constructor Details
-
KeyInfoEnc
- See Also:
-
KeyInfoEnc
- Throws:
XMLSecurityException- See Also:
-
-
Method Details
-
add
Method add AgreementMethod to the KeyInfo- Parameters:
agreementMethod- the AgreementMethod to be added. The AgreementMethod must extend classElementProxy
-
lengthAgreementMethod
public int lengthAgreementMethod()Method lengthAgreementMethod- Returns:
- the number of the AgreementMethod tags
-
itemAgreementMethod
Method itemAgreementMethod- Parameters:
i- index of the AgreementMethod element- Returns:
- the i(th) AgreementMethod proxy element or null if the index is too big
- Throws:
XMLSecurityException- if the element with AgreementMethod exists but with wrong namespace
-
containsAgreementMethod
public boolean containsAgreementMethod()Method containsAgreementMethod returns true if the KeyInfo contains a AgreementMethod node- Returns:
- true if the KeyInfo contains a AgreementMethod node else false
-