|
Oracle Fusion Middleware Liberty 1.2 Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10671-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.liberty.v12.metadata.AffiliationDescriptor
public class AffiliationDescriptor
Liberty 1.2 libMD:AffiliationDescriptor element.
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
AffiliationDescriptor(org.w3c.dom.Document owner) Creates a new AffiliationDescriptor instance within the specified XML Document. |
|
AffiliationDescriptor(org.w3c.dom.Document owner, java.lang.String affiliationOwnerID) Creates a new AffiliationDescriptor instance within the specified XML Document. |
|
AffiliationDescriptor(org.w3c.dom.Element element) Creates a new AffiliationDescriptor instance from the given Element node. |
|
AffiliationDescriptor(org.w3c.dom.Element element, java.lang.String systemId) Creates a new AffiliationDescriptor instance from the given Element node. |
Method Summary | |
---|---|
void |
addAffiliateMember(java.lang.String providerID) Adds a member entity to this AffiliateDescriptor. |
void |
addKeyDescriptor(KeyDescriptor keyDesc) Adds a KeyDescriptor child element to this AffiliationDescriptor. |
oracle.security.xmlsec.dsig.XSSignature |
addSignature(java.lang.String signatureMethod, java.lang.String c14nMethod, java.lang.String digestMethod) Adds a ds:Signature to this AffiliationDescriptor, replacing any existing signature. |
java.util.List |
getAffiliateMembers() Returns the list of member entities for this AffiliateDescriptor. |
java.lang.String |
getAffiliationOwnerID() Returns the AffiliationOwnerID attribute value for the affiliation group. |
java.lang.String |
getCacheDuration() Returns the cacheDuration attribute of this AffiliationDescriptor. |
java.lang.String |
getId() Returns the "id" attribute of this AffiliationDescriptor, for use as the target of a ds:Signature. |
java.util.List |
getKeyDescriptors() Returns a list of the KeyDescriptor elements contained in this AffiliationDescriptor. |
oracle.security.xmlsec.dsig.XSSignature |
getSignature() Returns the XML Signature child element from this AffiliationDescriptor element. |
java.util.Date |
getValidUntil() Returns the validUntil attribute of this AffiliationDescriptor, indicating the expiration of the metadata. |
void |
setAffiliationOwnerID(java.lang.String affiliationOwnerID) Sets the AffiliationOwnerID attribute for the affiliation group. |
void |
setCacheDuration(java.lang.String duration) Sets the cacheDuration attribute of this AffiliationDescriptor. |
void |
setId(java.lang.String id) Sets the "id" attribute of this AffiliationDescriptor, for use as the target of a ds:Signature. |
void |
setValidUntil(java.util.Date validUntil) Sets the validUntil attribute of this AffiliationDescriptor, indicating the expiration of the metadata. |
Methods inherited from class oracle.security.xmlsec.util.XMLElement |
---|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AffiliationDescriptor(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
AffiliationDescriptor
instance from the given Element node.
element
- A Liberty AffiliationDescriptor XML element.org.w3c.dom.DOMException
public AffiliationDescriptor(org.w3c.dom.Element element, java.lang.String systemId) throws org.w3c.dom.DOMException
AffiliationDescriptor
instance from the given Element node.
element
- A Liberty AffiliationDescriptor XML element.systemId
- The URI string system ID for the AffiliationDescriptor
.org.w3c.dom.DOMException
public AffiliationDescriptor(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
AffiliationDescriptor
instance within the specified XML Document.
owner
- The owner document of the new Liberty AffiliationDescriptor element.org.w3c.dom.DOMException
public AffiliationDescriptor(org.w3c.dom.Document owner, java.lang.String affiliationOwnerID) throws org.w3c.dom.DOMException
AffiliationDescriptor
instance within the specified XML Document.
owner
- The owner document of the new Liberty AffiliationDescriptor element.affiliationOwnerID
- The affiliationOwnerID
attribute value.org.w3c.dom.DOMException
Method Detail |
---|
public void setAffiliationOwnerID(java.lang.String affiliationOwnerID) throws org.w3c.dom.DOMException
affiliationOwnerID
- The providerID of the affiliation's owner or parent operator.org.w3c.dom.DOMException
public java.lang.String getAffiliationOwnerID()
public void setId(java.lang.String id) throws org.w3c.dom.DOMException
id
- The "id" attribute's ID value.org.w3c.dom.DOMException
public java.lang.String getId()
public void setValidUntil(java.util.Date validUntil) throws org.w3c.dom.DOMException
validUntil
- The validUntil attribute's dateTime value.org.w3c.dom.DOMException
public java.util.Date getValidUntil()
public void setCacheDuration(java.lang.String duration) throws org.w3c.dom.DOMException
duration
- The cacheDuration attribute value.org.w3c.dom.DOMException
public java.lang.String getCacheDuration()
public void addAffiliateMember(java.lang.String providerID) throws org.w3c.dom.DOMException
providerID
- The member entity's providerID URI string.org.w3c.dom.DOMException
public java.util.List getAffiliateMembers()
List
of member entities' providerID URI strings.public void addKeyDescriptor(KeyDescriptor keyDesc)
keyDesc
- The KeyDescriptor
instance.public java.util.List getKeyDescriptors()
List
of KeyDescriptor
objects.public oracle.security.xmlsec.dsig.XSSignature addSignature(java.lang.String signatureMethod, java.lang.String c14nMethod, java.lang.String digestMethod) throws org.w3c.dom.DOMException, oracle.security.xmlsec.dsig.SigningException
sign()
methods must be invoked on the returned oracle.security.xmlsec.dsig.XSSignature
object. The XSSignature
object can be used to add a ds:KeyInfo containing, for example, the signer's public key certificate.
See XMLURI
for algorithm URI string constants.
Note: This AffiliationDescriptor must have an "id" attribute to be used as the target of the new signature's Reference element. If no "id" attribute is present, a SigningException is thrown.
signatureMethod
- The URI identifying the signature algorithm to be used.c14nMethod
- The URI identifying the canonicalization algorithm to be used.digestMethod
- The URI identifying the message digest algorithm to be used.oracle.security.xmlsec.dsig.SigningException
- If no "id" attribute has been set for this AffiliationDescriptor.org.w3c.dom.DOMException
XSSignature
, XSKeyInfo
, XMLURI
public oracle.security.xmlsec.dsig.XSSignature getSignature()
AffiliationDescriptor
element.XSSignature
object or null
if no signature is present.
|
Oracle Fusion Middleware Liberty 1.2 Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10671-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |