From 754e8406bb2fea90168f620739cc8a8fa06f9ba0 Mon Sep 17 00:00:00 2001 From: Mike Derryberry Date: Fri, 29 Jun 2012 15:06:33 -0400 Subject: [PATCH] removed web app from this git repository --- .../org/mitre/jwt/encryption/AbstractJweDecrypter.java | 10 +--------- .../org/mitre/jwt/encryption/impl/RsaDecrypter.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/openid-connect-common/src/main/java/org/mitre/jwt/encryption/AbstractJweDecrypter.java b/openid-connect-common/src/main/java/org/mitre/jwt/encryption/AbstractJweDecrypter.java index dd887420d..e53f869ad 100644 --- a/openid-connect-common/src/main/java/org/mitre/jwt/encryption/AbstractJweDecrypter.java +++ b/openid-connect-common/src/main/java/org/mitre/jwt/encryption/AbstractJweDecrypter.java @@ -15,19 +15,11 @@ import org.mitre.jwe.model.Jwe; public abstract class AbstractJweDecrypter implements JwtDecrypter { - private Jwe jwe; + private PrivateKey privateKey; private PublicKey publicKey; - - public Jwe getJwe() { - return jwe; - } - - public void setJwe(Jwe jwe) { - this.jwe = jwe; - } public PrivateKey getPrivateKey() { return privateKey; diff --git a/openid-connect-common/src/main/java/org/mitre/jwt/encryption/impl/RsaDecrypter.java b/openid-connect-common/src/main/java/org/mitre/jwt/encryption/impl/RsaDecrypter.java index d350c251e..a0d5f2425 100644 --- a/openid-connect-common/src/main/java/org/mitre/jwt/encryption/impl/RsaDecrypter.java +++ b/openid-connect-common/src/main/java/org/mitre/jwt/encryption/impl/RsaDecrypter.java @@ -7,10 +7,20 @@ import org.mitre.jwt.model.JwtHeader; public class RsaDecrypter extends AbstractJweDecrypter { + private Jwe jwe; + public RsaDecrypter(Jwe jwe) { setJwe(jwe); } + public Jwe getJwe() { + return jwe; + } + + public void setJwe(Jwe jwe) { + this.jwe = jwe; + } + @Override public Jwe decrypt(String encryptedJwe) {