aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/github/scribejava/apis
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-05-13 00:37:35 +0300
committerGravatar Vitaly Takmazov2022-05-13 00:42:10 +0300
commitef2c53357a9e7b3b33644cfaa2e3f7c74dd3442d (patch)
tree387fbac8d8fc0ce0a57643cc5deb6ce560d6539b /src/main/java/com/github/scribejava/apis
parentbe2c3b7dcbc006ce51cac2d63e23f64a8a775a1a (diff)
Refactor AppleClientSecretGenerator
Diffstat (limited to 'src/main/java/com/github/scribejava/apis')
-rw-r--r--src/main/java/com/github/scribejava/apis/AppleClientSecretGenerator.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/com/github/scribejava/apis/AppleClientSecretGenerator.java b/src/main/java/com/github/scribejava/apis/AppleClientSecretGenerator.java
index 2de9ea4a..c6bbf63d 100644
--- a/src/main/java/com/github/scribejava/apis/AppleClientSecretGenerator.java
+++ b/src/main/java/com/github/scribejava/apis/AppleClientSecretGenerator.java
@@ -37,15 +37,12 @@ public class AppleClientSecretGenerator {
private final Key signingKey;
- private final byte[] pemData;
-
public AppleClientSecretGenerator(final String subject, final String teamId, final String keyId, final byte[] pemData)
throws NoSuchAlgorithmException, InvalidKeySpecException {
this.subject = subject;
this.keyId = keyId;
this.teamId = teamId;
- this.pemData = pemData;
this.signingKey = Keys.decode(pemData);
}
@@ -74,7 +71,7 @@ public class AppleClientSecretGenerator {
return subject;
}
- public byte[] getPemData() {
- return pemData;
+ public java.security.Key getPublicKey() {
+ return signingKey.getPublicKey().getKey();
}
}