org.w3.xmldsig
Class Signature

java.lang.Object
  extended by org.w3.xmldsig.Signature
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.ToString

public class Signature
extends Object
implements org.jvnet.jaxb2_commons.lang.ToString

Java class for SignatureType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="SignatureType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.w3.org/2000/09/xmldsig#}SignedInfo"/>
         <element ref="{http://www.w3.org/2000/09/xmldsig#}SignatureValue"/>
         <element ref="{http://www.w3.org/2000/09/xmldsig#}KeyInfo" minOccurs="0"/>
         <element ref="{http://www.w3.org/2000/09/xmldsig#}Object" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String id
           
protected  KeyInfo keyInfo
           
protected  List<Object> objects
           
protected  SignatureValue signatureValue
           
protected  SignedInfo signedInfo
           
 
Constructor Summary
Signature()
          Default no-arg constructor
Signature(SignedInfo signedInfo, SignatureValue signatureValue, KeyInfo keyInfo, List<Object> objects, String id)
          Fully-initialising value constructor
 
Method Summary
 StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 String getId()
          Gets the value of the id property.
 KeyInfo getKeyInfo()
          Gets the value of the keyInfo property.
 List<Object> getObjects()
          Gets the value of the objects property.
 SignatureValue getSignatureValue()
          Gets the value of the signatureValue property.
 SignedInfo getSignedInfo()
          Gets the value of the signedInfo property.
 void setId(String value)
          Sets the value of the id property.
 void setKeyInfo(KeyInfo value)
          Sets the value of the keyInfo property.
 void setObjects(List<Object> value)
           
 void setSignatureValue(SignatureValue value)
          Sets the value of the signatureValue property.
 void setSignedInfo(SignedInfo value)
          Sets the value of the signedInfo property.
 String toString()
           
 Signature withId(String value)
           
 Signature withKeyInfo(KeyInfo value)
           
 Signature withObjects(Collection<Object> values)
           
 Signature withObjects(List<Object> value)
           
 Signature withObjects(Object... values)
           
 Signature withSignatureValue(SignatureValue value)
           
 Signature withSignedInfo(SignedInfo value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

signedInfo

protected SignedInfo signedInfo

signatureValue

protected SignatureValue signatureValue

keyInfo

protected KeyInfo keyInfo

objects

protected List<Object> objects

id

protected String id
Constructor Detail

Signature

public Signature()
Default no-arg constructor


Signature

public Signature(SignedInfo signedInfo,
                 SignatureValue signatureValue,
                 KeyInfo keyInfo,
                 List<Object> objects,
                 String id)
Fully-initialising value constructor

Method Detail

getSignedInfo

public SignedInfo getSignedInfo()
Gets the value of the signedInfo property.

Returns:
possible object is SignedInfo

setSignedInfo

public void setSignedInfo(SignedInfo value)
Sets the value of the signedInfo property.

Parameters:
value - allowed object is SignedInfo

getSignatureValue

public SignatureValue getSignatureValue()
Gets the value of the signatureValue property.

Returns:
possible object is SignatureValue

setSignatureValue

public void setSignatureValue(SignatureValue value)
Sets the value of the signatureValue property.

Parameters:
value - allowed object is SignatureValue

getKeyInfo

public KeyInfo getKeyInfo()
Gets the value of the keyInfo property.

Returns:
possible object is KeyInfo

setKeyInfo

public void setKeyInfo(KeyInfo value)
Sets the value of the keyInfo property.

Parameters:
value - allowed object is KeyInfo

getObjects

public List<Object> getObjects()
Gets the value of the objects property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the objects property.

For example, to add a new item, do as follows:

    getObjects().add(newItem);
 

Objects of the following type(s) are allowed in the list Object


getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

setObjects

public void setObjects(List<Object> value)

toString

public String toString()
Overrides:
toString in class Object

append

public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            StringBuilder buffer,
                            org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
append in interface org.jvnet.jaxb2_commons.lang.ToString

appendFields

public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                  StringBuilder buffer,
                                  org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
appendFields in interface org.jvnet.jaxb2_commons.lang.ToString

withSignedInfo

public Signature withSignedInfo(SignedInfo value)

withSignatureValue

public Signature withSignatureValue(SignatureValue value)

withKeyInfo

public Signature withKeyInfo(KeyInfo value)

withObjects

public Signature withObjects(Object... values)

withObjects

public Signature withObjects(Collection<Object> values)

withId

public Signature withId(String value)

withObjects

public Signature withObjects(List<Object> value)


Copyright © 2014 Digipost Open Source. All Rights Reserved.