-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setServiceAccountPrivateKeyFromP12File(InputStream p12File) #857
Labels
imported
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Comments
+1 It's challenging to get java.io.File from jar file. While InputStream is easy. |
👍 Having issues with this too |
+1 for this feature. |
ping on this one |
@saturnism how would you characterize the urgency/importance of this issue? |
07810030040 |
JustinBeckwith
added
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
🚨
This issue needs some love.
labels
Jun 7, 2018
Added in #1011 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
imported
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
From sebastie...@progis.fr on February 11, 2014 23:28:46
For now, you can't use a p12 stored as a resource and it coul be very usefull if you can setServiceAccountPrivateKeyFromP12File from an InputStream (way that you can access to the ressource).
Here is the method that I use :
public Builder setServiceAccountPrivateKeyFromP12File(InputStream p12File)
throws GeneralSecurityException, IOException {
serviceAccountPrivateKey = SecurityUtils.loadPrivateKeyFromKeyStore(
SecurityUtils.getPkcs12KeyStore(), p12File, "notasecret",
"privatekey", "notasecret");
return this;
}
Original issue: http://code.google.com/p/google-api-java-client/issues/detail?id=857
The text was updated successfully, but these errors were encountered: