<ds:SignedInfo> elements
This SignedInfo element includes the canonicalization algorithm,
a signature algorithm, and one or more references.
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | c14nizedBytes
Field c14nizedBytes |
| private Element | |
| private final SignatureAlgorithm | signatureAlgorithm
Field signatureAlgorithm |
| private Element |
| Access | Constructor and Description |
|---|---|
| public | SignedInfo(Document
the doc)Document in which XMLsignature will
be placedOverwrites |
| public | SignedInfo(Document
SignedInfo is placed in this documentURI representation of the Digest and
Signature algorithm signatureMethodURI, String URI representation of the
Canonicalization method canonicalizationMethodURI)Constructs |
| public | SignedInfo(Document
SignedInfo is placed in this documentURI representation of the Digest and
Signature algorithm signatureMethodURI, String URI representation of the
Canonicalization method canonicalizationMethodURI, Provider security provider to use provider)Constructs |
| public | SignedInfo(Document
SignedInfo is placed in this documentURI representation of the Digest and
Signature algorithm signatureMethodURI, int hMACOutputLength, String URI representation of the
Canonicalization method canonicalizationMethodURI)Constructor SignedInfo |
| public | SignedInfo(Document
SignedInfo is placed in this documentURI representation of the Digest and
Signature algorithm signatureMethodURI, int hMACOutputLength, String URI representation of the
Canonicalization method canonicalizationMethodURI, Provider security provider to use provider, AlgorithmParameterSpec AlgorithmParameterSpec to use spec)Constructs |
| public | |
| public | SignedInfo(Document doc, Element signatureMethodElem, Element canonicalizationMethodElem, Provider provider)
|
| public | SignedInfo(Element
SignedInfothe URI of the resource where the XML instance was stored baseURI)Build a |
| public | SignedInfo(Element
SignedInfothe URI of the resource where the XML instance was stored baseURI, boolean whether secure validation is enabled or not secureValidation)Build a |
| public | SignedInfo(Element
SignedInfothe URI of the resource where the XML instance was stored baseURI, boolean whether secure validation is enabled or not secureValidation, Provider security provider to use provider)Build a |
| Modifier and Type | Method and Description |
|---|---|
| public SecretKey | Returns: the secret key for the SignedInfo element.Creates a SecretKey for the appropriate Mac algorithm based on a byte[] array password. |
| public String | getBaseLocalName()
Overrides com. Method getBaseLocalName Method getBaseLocalName Returns the localname of the Elements of the sub-class. |
| public String | Returns: the Canonicalization method URIReturns the Canonicalization method URI |
| public byte[] | Returns: the canonicalization result octet stream ofSignedInfo elementReturns getCanonicalizedOctetStream |
| public String | |
| public SignatureAlgorithm | |
| public Element | Returns: returns the SignatureMethod ElementMethod getSignatureMethodElement |
| public String | |
| public void | |
| public boolean | |
| public boolean | Returns: true if verification was successfuldefines whether the verification process has to verify referenced followManifests)ds:Manifests, tooTests core validation process |
| c14nizedBytes | back to summary |
|---|---|
| private byte[] c14nizedBytes Field c14nizedBytes | |
| c14nMethod | back to summary |
|---|---|
| private Element c14nMethod | |
| signatureAlgorithm | back to summary |
|---|---|
| private final SignatureAlgorithm signatureAlgorithm Field signatureAlgorithm | |
| signatureMethod | back to summary |
|---|---|
| private Element signatureMethod | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Document doc) throws XMLSecurityException Overwrites | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Document doc, String signatureMethodURI, String canonicalizationMethodURI) throws XMLSecurityException Constructs | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Document doc, String signatureMethodURI, String canonicalizationMethodURI, Provider provider) throws XMLSecurityException Constructs | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Document doc, String signatureMethodURI, int hMACOutputLength, String canonicalizationMethodURI) throws XMLSecurityException Constructor SignedInfo | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Document doc, String signatureMethodURI, int hMACOutputLength, String canonicalizationMethodURI, Provider provider, AlgorithmParameterSpec spec) throws XMLSecurityException Constructs
| |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Document doc, Element signatureMethodElem, Element canonicalizationMethodElem) throws XMLSecurityException | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Document doc, Element signatureMethodElem, Element canonicalizationMethodElem, Provider provider) throws XMLSecurityException | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Element element, String baseURI) throws XMLSecurityException Build a | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Element element, String baseURI, boolean secureValidation) throws XMLSecurityException Build a | |
| SignedInfo | back to summary |
|---|---|
| public SignedInfo(Element element, String baseURI, boolean secureValidation, Provider provider) throws XMLSecurityException Build a | |
| createSecretKey | back to summary |
|---|---|
| public SecretKey createSecretKey(byte[] secretKeyBytes) Creates a SecretKey for the appropriate Mac algorithm based on a byte[] array password.
| |
| getBaseLocalName | back to summary |
|---|---|
| public String getBaseLocalName() Overrides com. Doc from com. Method getBaseLocalName Method getBaseLocalName Returns the localname of the Elements of the sub-class.
| |
| getCanonicalizationMethodURI | back to summary |
|---|---|
| public String getCanonicalizationMethodURI() Returns the Canonicalization method URI
| |
| getCanonicalizedOctetStream | back to summary |
|---|---|
| public byte[] getCanonicalizedOctetStream() throws CanonicalizationException, InvalidCanonicalizerException, XMLSecurityException, IOException Returns getCanonicalizedOctetStream
| |
| getInclusiveNamespaces | back to summary |
|---|---|
| public String getInclusiveNamespaces() | |
| getSignatureAlgorithm | back to summary |
|---|---|
| public SignatureAlgorithm getSignatureAlgorithm() | |
| getSignatureMethodElement | back to summary |
|---|---|
| public Element getSignatureMethodElement() Method getSignatureMethodElement
| |
| getSignatureMethodURI | back to summary |
|---|---|
| public String getSignatureMethodURI() Returns the Signature method URI
| |
| signInOctetStream | back to summary |
|---|---|
| public void signInOctetStream(OutputStream os) throws CanonicalizationException, InvalidCanonicalizerException, XMLSecurityException Output the C14n stream to the given OutputStream. | |
| verify | back to summary |
|---|---|
| public boolean verify() throws MissingResourceFailureException, XMLSecurityException Tests core validation process
| |
| verify | back to summary |
|---|---|
| public boolean verify(boolean followManifests) throws MissingResourceFailureException, XMLSecurityException Tests core validation process
| |