org.opensaml.xml.encryption.impl
Class AgreementMethodImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.xml.encryption.impl.AgreementMethodImpl
All Implemented Interfaces:
ElementExtensibleXMLObject, AgreementMethod, ValidatingXMLObject, XMLObject

public class AgreementMethodImpl
extends AbstractValidatingXMLObject
implements AgreementMethod

Concrete implementation of AgreementMethod.


Field Summary
 
Fields inherited from interface org.opensaml.xml.encryption.AgreementMethod
ALGORITHM_ATTRIBUTE_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected AgreementMethodImpl(java.lang.String namespaceURI, java.lang.String elementLocalName, java.lang.String namespacePrefix)
          Constructor.
 
Method Summary
 java.lang.String getAlgorithm()
          Gets the algorithm URI attribute value for this agreement method.
 KANonce getKANonce()
          Get the nonce child element used to introduce variability into the generation of keying material.
 java.util.List<XMLObject> getOrderedChildren()
          Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
 OriginatorKeyInfo getOriginatorKeyInfo()
          Get the child element containing the key generation material for the originator.
 RecipientKeyInfo getRecipientKeyInfo()
          Get the child element containing the key generation material for the recipient.
 java.util.List<XMLObject> getUnknownXMLObjects()
          Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.
 java.util.List<XMLObject> getUnknownXMLObjects(javax.xml.namespace.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(java.lang.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.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, 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.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Constructor Detail

AgreementMethodImpl

protected AgreementMethodImpl(java.lang.String namespaceURI,
                              java.lang.String elementLocalName,
                              java.lang.String namespacePrefix)
Constructor.

Parameters:
namespaceURI - namespace URI
elementLocalName - element local name
namespacePrefix - namespace prefix
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Gets the algorithm URI attribute value for this agreement method.

Specified by:
getAlgorithm in interface AgreementMethod
Returns:
the algorithm URI attribute value

setAlgorithm

public void setAlgorithm(java.lang.String newAlgorithm)
Sets the algorithm URI attribute value for this agreement method.

Specified by:
setAlgorithm in interface AgreementMethod
Parameters:
newAlgorithm - the new algorithm URI attribute value

getKANonce

public KANonce getKANonce()
Get the nonce child element used to introduce variability into the generation of keying material.

Specified by:
getKANonce in interface AgreementMethod
Returns:
the KA-Nonce child element

setKANonce

public void setKANonce(KANonce newKANonce)
Set the nonce child element used to introduce variability into the generation of keying material.

Specified by:
setKANonce in interface AgreementMethod
Parameters:
newKANonce - the new KA-Nonce child element

getOriginatorKeyInfo

public OriginatorKeyInfo getOriginatorKeyInfo()
Get the child element containing the key generation material for the originator.

Specified by:
getOriginatorKeyInfo in interface AgreementMethod
Returns:
the OriginatorKeyInfo child element

setOriginatorKeyInfo

public void setOriginatorKeyInfo(OriginatorKeyInfo newOriginatorKeyInfo)
Set the child element containing the key generation material for the originator.

Specified by:
setOriginatorKeyInfo in interface AgreementMethod
Parameters:
newOriginatorKeyInfo - the new OriginatorKeyInfo child element

getRecipientKeyInfo

public RecipientKeyInfo getRecipientKeyInfo()
Get the child element containing the key generation material for the recipient.

Specified by:
getRecipientKeyInfo in interface AgreementMethod
Returns:
the RecipientKeyInfo child element

setRecipientKeyInfo

public void setRecipientKeyInfo(RecipientKeyInfo newRecipientKeyInfo)
Set the child element containing the key generation material for the recipient.

Specified by:
setRecipientKeyInfo in interface AgreementMethod
Parameters:
newRecipientKeyInfo - the new RecipientKeyInfo child element

getUnknownXMLObjects

public java.util.List<XMLObject> getUnknownXMLObjects()
Gets the list of XMLObjects added to this XMLObject as part of the "any" content model.

Specified by:
getUnknownXMLObjects in interface ElementExtensibleXMLObject
Returns:
list of XMLObjects added to this XMLObject as part of the "any" content model

getUnknownXMLObjects

public java.util.List<XMLObject> getUnknownXMLObjects(javax.xml.namespace.QName typeOrName)
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 interface ElementExtensibleXMLObject
Parameters:
typeOrName - the QName of the statements to return
Returns:
list of XMLObjects added to this XMLObject as part of the "any" content model

getOrderedChildren

public java.util.List<XMLObject> getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.

Specified by:
getOrderedChildren in interface XMLObject
Returns:
ordered list of child elements


Copyright © 2006-2012 Internet2. All Rights Reserved.