org.opensaml.xml.signature.impl
Class KeyInfoTypeImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.xml.signature.impl.KeyInfoTypeImpl
All Implemented Interfaces:
KeyInfoType, ValidatingXMLObject, XMLObject
Direct Known Subclasses:
KeyInfoImpl, OriginatorKeyInfoImpl, RecipientKeyInfoImpl

public class KeyInfoTypeImpl
extends AbstractValidatingXMLObject
implements KeyInfoType

Concrete implementation of KeyInfoType


Field Summary
private  String id
          The Id attribute value
private  IndexedXMLObjectChildrenList indexedChildren
          The list of XMLObject child elements
 
Fields inherited from interface org.opensaml.xml.signature.KeyInfoType
ID_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
 
Constructor Summary
protected KeyInfoTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor
 
Method Summary
 List<AgreementMethod> getAgreementMethods()
          Get the list of AgreementMethod child elements.
 List<EncryptedKey> getEncryptedKeys()
          Get the list of EncryptedKey child elements Note: EncryptedKey is actually defined in the XML Encryption schema, and is not explicitly defined in the KeyInfoType content model, but for convenience this named getter method is exposed.
 String getID()
          Get the Id attribute value.
 List<KeyName> getKeyNames()
          Get the list of KeyName child elements.
 List<KeyValue> getKeyValues()
          Get the list of KeyValue child elements.
 List<MgmtData> getMgmtDatas()
          Get the list of MgmtData child elements.
 List<XMLObject> getOrderedChildren()
          Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
 List<PGPData> getPGPDatas()
          Get the list of PGPData child elements.
 List<RetrievalMethod> getRetrievalMethods()
          Get the list of RetrievalMethod child elements.
 List<SPKIData> getSPKIDatas()
          Get the list of SPKIData child elements.
 List<X509Data> getX509Datas()
          Get the list of X509Data child elements.
 List<XMLObject> getXMLObjects()
          Get the list of all XMLObject children.
 List<XMLObject> getXMLObjects(QName typeOrName)
          Get the list of XMLObject children whose type or element QName matches the specified QName.
 void setID(String newID)
          Set the Id attribute value.
 
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, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, 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.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

indexedChildren

private final IndexedXMLObjectChildrenList indexedChildren
The list of XMLObject child elements


id

private String id
The Id attribute value

Constructor Detail

KeyInfoTypeImpl

protected KeyInfoTypeImpl(String namespaceURI,
                          String elementLocalName,
                          String namespacePrefix)
Constructor

Parameters:
namespaceURI -
elementLocalName -
namespacePrefix -
Method Detail

getID

public String getID()
Get the Id attribute value.

Specified by:
getID in interface KeyInfoType
Returns:
the Id attribute value

setID

public void setID(String newID)
Set the Id attribute value.

Specified by:
setID in interface KeyInfoType
Parameters:
newID - the new Id attribute value

getXMLObjects

public List<XMLObject> getXMLObjects()
Get the list of all XMLObject children.

Specified by:
getXMLObjects in interface KeyInfoType
Returns:
the list of XMLObject children

getXMLObjects

public List<XMLObject> getXMLObjects(QName typeOrName)
Get the list of XMLObject children whose type or element QName matches the specified QName.

Specified by:
getXMLObjects in interface KeyInfoType
Parameters:
typeOrName - the QName of the desired elements
Returns:
the matching list of XMLObject children

getKeyNames

public List<KeyName> getKeyNames()
Get the list of KeyName child elements.

Specified by:
getKeyNames in interface KeyInfoType
Returns:
the list of KeyName child elements

getKeyValues

public List<KeyValue> getKeyValues()
Get the list of KeyValue child elements.

Specified by:
getKeyValues in interface KeyInfoType
Returns:
the list of KeyValue child elements

getRetrievalMethods

public List<RetrievalMethod> getRetrievalMethods()
Get the list of RetrievalMethod child elements.

Specified by:
getRetrievalMethods in interface KeyInfoType
Returns:
the list of RetrievalMethod child elements

getX509Datas

public List<X509Data> getX509Datas()
Get the list of X509Data child elements.

Specified by:
getX509Datas in interface KeyInfoType
Returns:
the list of X509Data child elements

getPGPDatas

public List<PGPData> getPGPDatas()
Get the list of PGPData child elements.

Specified by:
getPGPDatas in interface KeyInfoType
Returns:
the list of PGPData child elements

getSPKIDatas

public List<SPKIData> getSPKIDatas()
Get the list of SPKIData child elements.

Specified by:
getSPKIDatas in interface KeyInfoType
Returns:
the list of SPKIData child elements

getMgmtDatas

public List<MgmtData> getMgmtDatas()
Get the list of MgmtData child elements.

Specified by:
getMgmtDatas in interface KeyInfoType
Returns:
the list of MgmtData child elements

getAgreementMethods

public List<AgreementMethod> getAgreementMethods()
Get the list of AgreementMethod child elements. Note: AgreementMethod is actually defined in the XML Encryption schema, and is not explicitly defined in the KeyInfoType content model, but for convenience this named getter method is exposed.

Specified by:
getAgreementMethods in interface KeyInfoType
Returns:
the list of AgreementMethod child elements

getEncryptedKeys

public List<EncryptedKey> getEncryptedKeys()
Get the list of EncryptedKey child elements Note: EncryptedKey is actually defined in the XML Encryption schema, and is not explicitly defined in the KeyInfoType content model, but for convenience this named getter method is exposed.

Specified by:
getEncryptedKeys in interface KeyInfoType
Returns:
the list of EncryptedKey child elements

getOrderedChildren

public 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 © 1999-2013. All Rights Reserved.