org.openliberty.xmltooling.soapbinding
Class MessageID

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.signature.AbstractSignableXMLObject
          extended by org.openliberty.xmltooling.soapbinding.MessageID
All Implemented Interfaces:
org.opensaml.xml.AttributeExtensibleXMLObject, org.opensaml.xml.signature.SignableXMLObject, org.opensaml.xml.XMLObject

public class MessageID
extends org.opensaml.xml.signature.AbstractSignableXMLObject
implements org.opensaml.xml.AttributeExtensibleXMLObject

Values of the <wsa:MessageID> header block MUST satisfy the following property:

Any party that assigns a value to a header block MUST ensure that there is negligible probability that that party or any other party will accidentally assign the same identifier to any other message.

The mechanism by which SOAP-based ID-* senders or receivers ensure that an identifier is unique is left to implementations. In the case that a pseudo-random technique is employed, the above requirement MAY be met by randomly choosing a value 160 bits in length.

Author:
tguion, asa

Nested Class Summary
static class MessageID.Builder
          Internal Builder
static class MessageID.Marshaller
          Internal Marshaller
static class MessageID.Unmarshaller
          Internal Unmarshaller
 
Field Summary
static java.lang.String DEFAULT_ELEMENT_LOCAL_NAME
           
static javax.xml.namespace.QName DEFAULT_ELEMENT_NAME
           
private static org.opensaml.common.impl.SecureRandomIdentifierGenerator idGenerator
           
private static org.apache.log4j.Logger log
           
private  org.opensaml.xml.util.AttributeMap otherAttributes
          Support for AttributeExtensibleXMLObject interface
private  java.lang.String value
           
 
Constructor Summary
  MessageID()
          Constructor that automatically sets the value of the message id.
protected MessageID(java.lang.String namespaceURI, java.lang.String elementLocalName, java.lang.String namespacePrefix)
          Constructor
 
Method Summary
 java.util.List<org.opensaml.xml.XMLObject> getOrderedChildren()
           
 org.opensaml.xml.util.AttributeMap getUnknownAttributes()
           
 java.lang.String getValue()
          
 void setValue(java.lang.String newValue)
          
 
Methods inherited from class org.opensaml.xml.signature.AbstractSignableXMLObject
getSignature, isSigned, setSignature
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, 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.XMLObject
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

log

private static org.apache.log4j.Logger log

idGenerator

private static org.opensaml.common.impl.SecureRandomIdentifierGenerator idGenerator

DEFAULT_ELEMENT_LOCAL_NAME

public static final java.lang.String DEFAULT_ELEMENT_LOCAL_NAME
See Also:
Constant Field Values

DEFAULT_ELEMENT_NAME

public static final javax.xml.namespace.QName DEFAULT_ELEMENT_NAME

value

private java.lang.String value

otherAttributes

private org.opensaml.xml.util.AttributeMap otherAttributes
Support for AttributeExtensibleXMLObject interface

Constructor Detail

MessageID

public MessageID()
Constructor that automatically sets the value of the message id. This constructor will only be called by users of the client library who wish to skip calling the MessageID$Builder for the same purpose.


MessageID

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

Parameters:
namespaceURI - the namespace the element is in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getValue

public java.lang.String getValue()


setValue

public void setValue(java.lang.String newValue)


getUnknownAttributes

public org.opensaml.xml.util.AttributeMap getUnknownAttributes()
Specified by:
getUnknownAttributes in interface org.opensaml.xml.AttributeExtensibleXMLObject

getOrderedChildren

public java.util.List<org.opensaml.xml.XMLObject> getOrderedChildren()
Specified by:
getOrderedChildren in interface org.opensaml.xml.XMLObject