Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AF1FC18480 for ; Thu, 18 Feb 2016 10:36:08 +0000 (UTC) Received: (qmail 48470 invoked by uid 500); 18 Feb 2016 10:36:08 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 48406 invoked by uid 500); 18 Feb 2016 10:36:08 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 48392 invoked by uid 99); 18 Feb 2016 10:36:08 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 10:36:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 781D1DFF67; Thu, 18 Feb 2016 10:36:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: coheigea@apache.org To: commits@cxf.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: Switch to use PrivateKey instead Date: Thu, 18 Feb 2016 10:36:08 +0000 (UTC) Repository: cxf Updated Branches: refs/heads/3.1.x-fixes a27f27bc2 -> 43d17e632 Switch to use PrivateKey instead Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/43d17e63 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/43d17e63 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/43d17e63 Branch: refs/heads/3.1.x-fixes Commit: 43d17e63214d8d79ac8796524c026830ffb1043a Parents: a27f27b Author: Colm O hEigeartaigh Authored: Thu Feb 18 10:32:47 2016 +0000 Committer: Colm O hEigeartaigh Committed: Thu Feb 18 10:33:58 2016 +0000 ---------------------------------------------------------------------- .../apache/cxf/rs/security/jose/jwe/JweJwtCompactConsumer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/43d17e63/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweJwtCompactConsumer.java ---------------------------------------------------------------------- diff --git a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweJwtCompactConsumer.java b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweJwtCompactConsumer.java index 451b464..f5610cf 100644 --- a/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweJwtCompactConsumer.java +++ b/rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/JweJwtCompactConsumer.java @@ -18,7 +18,7 @@ */ package org.apache.cxf.rs.security.jose.jwe; import java.nio.charset.StandardCharsets; -import java.security.interfaces.RSAPrivateKey; +import java.security.PrivateKey; import javax.crypto.SecretKey; @@ -39,7 +39,7 @@ public class JweJwtCompactConsumer { return decryptWith(JweUtils.createJweDecryptionProvider(key, headers.getContentEncryptionAlgorithm())); } - public JwtToken decryptWith(RSAPrivateKey key) { + public JwtToken decryptWith(PrivateKey key) { return decryptWith(JweUtils.createJweDecryptionProvider(key, headers.getKeyEncryptionAlgorithm(), headers.getContentEncryptionAlgorithm()));