-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incluído o atributo Id opcional na assinatura (#710)
Co-authored-by: Diego Fincatto <[email protected]>
- Loading branch information
1 parent
9547eb6
commit 6167636
Showing
1 changed file
with
37 additions
and
25 deletions.
There are no files selected for viewing
62 changes: 37 additions & 25 deletions
62
src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/assinatura/NFSignature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,56 @@ | ||
package com.fincatto.documentofiscal.nfe400.classes.nota.assinatura; | ||
|
||
import org.simpleframework.xml.Attribute; | ||
import org.simpleframework.xml.Element; | ||
import org.simpleframework.xml.Namespace; | ||
|
||
import com.fincatto.documentofiscal.DFBase; | ||
|
||
@Namespace(reference = "http://www.w3.org/2000/09/xmldsig#") | ||
public class NFSignature extends DFBase { | ||
private static final long serialVersionUID = 4057860940440076358L; | ||
private static final long serialVersionUID = 4057860940440076358L; | ||
|
||
@Element(name = "SignedInfo", required = false) | ||
private NFSignedInfo signedInfo; | ||
@Attribute(name = "Id", required = false) | ||
private String id; | ||
|
||
@Element(name = "SignatureValue", required = false) | ||
private String signatureValue; | ||
@Element(name = "SignedInfo", required = false) | ||
private NFSignedInfo signedInfo; | ||
|
||
@Element(name = "KeyInfo", required = false) | ||
private NFKeyInfo keyInfo; | ||
@Element(name = "SignatureValue", required = false) | ||
private String signatureValue; | ||
|
||
public NFSignedInfo getSignedInfo() { | ||
return this.signedInfo; | ||
} | ||
@Element(name = "KeyInfo", required = false) | ||
private NFKeyInfo keyInfo; | ||
|
||
public void setSignedInfo(final NFSignedInfo signedInfo) { | ||
this.signedInfo = signedInfo; | ||
} | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
public String getSignatureValue() { | ||
return this.signatureValue; | ||
} | ||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public void setSignatureValue(final String signatureValue) { | ||
this.signatureValue = signatureValue; | ||
} | ||
public NFSignedInfo getSignedInfo() { | ||
return this.signedInfo; | ||
} | ||
|
||
public NFKeyInfo getKeyInfo() { | ||
return this.keyInfo; | ||
} | ||
public void setSignedInfo(final NFSignedInfo signedInfo) { | ||
this.signedInfo = signedInfo; | ||
} | ||
|
||
public void setKeyInfo(final NFKeyInfo keyInfo) { | ||
this.keyInfo = keyInfo; | ||
} | ||
public String getSignatureValue() { | ||
return this.signatureValue; | ||
} | ||
|
||
public void setSignatureValue(final String signatureValue) { | ||
this.signatureValue = signatureValue; | ||
} | ||
|
||
public NFKeyInfo getKeyInfo() { | ||
return this.keyInfo; | ||
} | ||
|
||
public void setKeyInfo(final NFKeyInfo keyInfo) { | ||
this.keyInfo = keyInfo; | ||
} | ||
} |