Class AgreementMethodImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.encryption.impl.AgreementMethodImpl
- All Implemented Interfaces:
ElementExtensibleXMLObject
,XMLObject
,AgreementMethod
Concrete implementation of
AgreementMethod
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Algorithm attribute value.private KANonce
KA-Nonce child element value.private OriginatorKeyInfo
OriginatorKeyInfo child element value.private RecipientKeyInfo
RecipientKeyInfo child element value.private IndexedXMLObjectChildrenList<XMLObject>
List of wildcard <any> XMLObject children.Fields inherited from interface org.opensaml.xmlsec.encryption.AgreementMethod
ALGORITHM_ATTRIBUTE_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AgreementMethodImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the algorithm URI attribute value for this agreement method.Get the nonce child element used to introduce variability into the generation of keying material.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Get the child element containing the key generation material for the originator.Get the child element containing the key generation material for the recipient.Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.getUnknownXMLObjects
(QName typeOrName) Gets the list of XMLObjects added to this XMLObject as part of the "any" content model, and which match the specified QName.void
setAlgorithm
(String newAlgorithm) Sets the algorithm URI attribute value for this agreement method.void
setKANonce
(KANonce newKANonce) Set the nonce child element used to introduce variability into the generation of keying material.void
setOriginatorKeyInfo
(OriginatorKeyInfo newOriginatorKeyInfo) Set the child element containing the key generation material for the originator.void
setRecipientKeyInfo
(RecipientKeyInfo newRecipientKeyInfo) Set the child element containing the key generation material for the recipient.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
algorithm
Algorithm attribute value. -
kaNonce
KA-Nonce child element value. -
originatorKeyInfo
OriginatorKeyInfo child element value. -
recipientKeyInfo
RecipientKeyInfo child element value. -
xmlChildren
List of wildcard <any> XMLObject children.
-
-
Constructor Details
-
AgreementMethodImpl
Constructor.- Parameters:
namespaceURI
- namespace URIelementLocalName
- element local namenamespacePrefix
- namespace prefix
-
-
Method Details
-
getAlgorithm
Gets the algorithm URI attribute value for this agreement method.- Specified by:
getAlgorithm
in interfaceAgreementMethod
- Returns:
- the algorithm URI attribute value
-
setAlgorithm
Sets the algorithm URI attribute value for this agreement method.- Specified by:
setAlgorithm
in interfaceAgreementMethod
- Parameters:
newAlgorithm
- the new algorithm URI attribute value
-
getKANonce
Get the nonce child element used to introduce variability into the generation of keying material.- Specified by:
getKANonce
in interfaceAgreementMethod
- Returns:
- the KA-Nonce child element
-
setKANonce
Set the nonce child element used to introduce variability into the generation of keying material.- Specified by:
setKANonce
in interfaceAgreementMethod
- Parameters:
newKANonce
- the new KA-Nonce child element
-
getOriginatorKeyInfo
Get the child element containing the key generation material for the originator.- Specified by:
getOriginatorKeyInfo
in interfaceAgreementMethod
- Returns:
- the OriginatorKeyInfo child element
-
setOriginatorKeyInfo
Set the child element containing the key generation material for the originator.- Specified by:
setOriginatorKeyInfo
in interfaceAgreementMethod
- Parameters:
newOriginatorKeyInfo
- the new OriginatorKeyInfo child element
-
getRecipientKeyInfo
Get the child element containing the key generation material for the recipient.- Specified by:
getRecipientKeyInfo
in interfaceAgreementMethod
- Returns:
- the RecipientKeyInfo child element
-
setRecipientKeyInfo
Set the child element containing the key generation material for the recipient.- Specified by:
setRecipientKeyInfo
in interfaceAgreementMethod
- Parameters:
newRecipientKeyInfo
- the new RecipientKeyInfo child element
-
getUnknownXMLObjects
Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.- Specified by:
getUnknownXMLObjects
in interfaceElementExtensibleXMLObject
- Returns:
- list of XMLObjects added to this XMLObject as part of the "any" content model
-
getUnknownXMLObjects
Gets the list of XMLObjects added to this XMLObject as part of the "any" content model, and which match the specified QName.- Specified by:
getUnknownXMLObjects
in interfaceElementExtensibleXMLObject
- Parameters:
typeOrName
- the QName of the statements to return- Returns:
- list of XMLObjects added to this XMLObject as part of the "any" content model TODO: think this should be typed List<? extends XMLObject>
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Returns:
- ordered list of child elements
-