Class KeyInfoImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.signature.impl.KeyInfoImpl
- Direct Known Subclasses:
OriginatorKeyInfoImpl,RecipientKeyInfoImpl
Concrete implementation of
KeyInfo.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe Id attribute value.private final IndexedXMLObjectChildrenList<XMLObject>The list of XMLObject child elements.Fields inherited from interface org.opensaml.xmlsec.signature.KeyInfo
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ID_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedKeyInfoImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the list of AgreementMethod child elements.Get the list of DEREncodedKeyValue child elements.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.getID()Get the Id attribute value.Get the list of KeyInfoReference child elements.Get the list of KeyName child elements.Get the list of KeyValue child elements.Get the list of MgmtData child elements.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Get the list of PGPData child elements.Get the list of RetrievalMethod child elements.Get the list of SPKIData child elements.Get the list of X509Data child elements.Get the list of all XMLObject children.getXMLObjects(QName typeOrName) Get the list of XMLObject children whose type or element QName matches the specified QName.voidSet the Id attribute value.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, 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, setSchemaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, 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
-
indexedChildren
The list of XMLObject child elements. -
id
The Id attribute value.
-
-
Constructor Details
-
KeyInfoImpl
protected KeyInfoImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable String namespacePrefix) Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Details
-
getID
Get the Id attribute value. -
setID
Set the Id attribute value. -
getXMLObjects
Get the list of all XMLObject children.- Specified by:
getXMLObjectsin interfaceKeyInfo- Returns:
- the list of XMLObject children
-
getXMLObjects
Get the list of XMLObject children whose type or element QName matches the specified QName.- Specified by:
getXMLObjectsin interfaceKeyInfo- Parameters:
typeOrName- the QName of the desired elements- Returns:
- the matching list of XMLObject children
-
getKeyNames
Get the list of KeyName child elements.- Specified by:
getKeyNamesin interfaceKeyInfo- Returns:
- the list of KeyName child elements
-
getKeyValues
Get the list of KeyValue child elements.- Specified by:
getKeyValuesin interfaceKeyInfo- Returns:
- the list of KeyValue child elements
-
getDEREncodedKeyValues
Get the list of DEREncodedKeyValue child elements.- Specified by:
getDEREncodedKeyValuesin interfaceKeyInfo- Returns:
- the list of DEREncodedKeyValue child elements
-
getRetrievalMethods
Get the list of RetrievalMethod child elements.- Specified by:
getRetrievalMethodsin interfaceKeyInfo- Returns:
- the list of RetrievalMethod child elements
-
getKeyInfoReferences
Get the list of KeyInfoReference child elements.- Specified by:
getKeyInfoReferencesin interfaceKeyInfo- Returns:
- the list of KeyInfoReference child elements
-
getX509Datas
Get the list of X509Data child elements.- Specified by:
getX509Datasin interfaceKeyInfo- Returns:
- the list of X509Data child elements
-
getPGPDatas
Get the list of PGPData child elements.- Specified by:
getPGPDatasin interfaceKeyInfo- Returns:
- the list of PGPData child elements
-
getSPKIDatas
Get the list of SPKIData child elements.- Specified by:
getSPKIDatasin interfaceKeyInfo- Returns:
- the list of SPKIData child elements
-
getMgmtDatas
Get the list of MgmtData child elements.- Specified by:
getMgmtDatasin interfaceKeyInfo- Returns:
- the list of MgmtData child elements
-
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:
getAgreementMethodsin interfaceKeyInfo- Returns:
- the list of AgreementMethod child elements
-
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:
getEncryptedKeysin interfaceKeyInfo- Returns:
- the list of EncryptedKey child elements
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildrenin interfaceXMLObject- Returns:
- ordered list of child elements
-