[java-metadata-aggregator] 05/05: MDA-195 - fix types for Java 9 compatibility
Ian Young
ian at iay.org.uk
Thu Nov 23 10:32:31 EST 2017
This is an automated email from the git hooks/post-receive script.
iay pushed a commit to branch maint-0.9
in repository java-metadata-aggregator.
View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=e607a83f7126a7b00ff2558033e82046c63e6379
commit e607a83f7126a7b00ff2558033e82046c63e6379
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Oct 5 12:09:04 2017 +0100
MDA-195 - fix types for Java 9 compatibility
---
.../net/shibboleth/metadata/dom/XMLSignatureSigningStage.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/aggregator-pipeline/src/main/java/net/shibboleth/metadata/dom/XMLSignatureSigningStage.java b/aggregator-pipeline/src/main/java/net/shibboleth/metadata/dom/XMLSignatureSigningStage.java
index 0380878..1c0563c 100644
--- a/aggregator-pipeline/src/main/java/net/shibboleth/metadata/dom/XMLSignatureSigningStage.java
+++ b/aggregator-pipeline/src/main/java/net/shibboleth/metadata/dom/XMLSignatureSigningStage.java
@@ -32,6 +32,7 @@ import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.concurrent.ThreadSafe;
import javax.security.auth.x500.X500Principal;
+import javax.xml.crypto.XMLStructure;
import javax.xml.crypto.dsig.CanonicalizationMethod;
import javax.xml.crypto.dsig.DigestMethod;
import javax.xml.crypto.dsig.Reference;
@@ -815,7 +816,7 @@ public class XMLSignatureSigningStage extends BaseIteratingStage<Element> {
* @throws StageProcessingException thrown if there is a problem creating the KeyInfo descriptor
*/
@Nonnull protected KeyInfo buildKeyInfo() throws StageProcessingException {
- final ArrayList<Object> keyInfoItems = new ArrayList<>();
+ final List<XMLStructure> keyInfoItems = new ArrayList<>();
addKeyNames(keyInfoItems);
addKeyValue(keyInfoItems);
@@ -834,7 +835,7 @@ public class XMLSignatureSigningStage extends BaseIteratingStage<Element> {
*
* @throws StageProcessingException thrown if there is a problem creating the KeyName content
*/
- protected void addKeyNames(@Nonnull @NonnullElements @Live final ArrayList<Object> keyInfoItems)
+ protected void addKeyNames(@Nonnull @NonnullElements @Live final List<XMLStructure> keyInfoItems)
throws StageProcessingException {
if (!includeKeyNames) {
return;
@@ -854,7 +855,7 @@ public class XMLSignatureSigningStage extends BaseIteratingStage<Element> {
*
* @throws StageProcessingException thrown if there is a problem creating the KeyValue content
*/
- protected void addKeyValue(@Nonnull @NonnullElements @Live final ArrayList<Object> keyInfoItems)
+ protected void addKeyValue(@Nonnull @NonnullElements @Live final List<XMLStructure> keyInfoItems)
throws StageProcessingException {
if (!includeKeyValue) {
return;
@@ -884,7 +885,7 @@ public class XMLSignatureSigningStage extends BaseIteratingStage<Element> {
*
* @throws StageProcessingException thrown if there is a problem creating the X509Data content
*/
- protected void addX509Data(@Nonnull @NonnullElements @Live final ArrayList<Object> keyInfoItems) {
+ protected void addX509Data(@Nonnull @NonnullElements @Live final List<XMLStructure> keyInfoItems) {
final List<Object> x509Data = new ArrayList<>();
if (certificates != null && !certificates.isEmpty()) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list