You could also use following:

inputStream = 
getClass().getClassLoader().getResourceAsStream(APNS_CERTIFICATE_PATH);

On Wednesday, January 22, 2014 3:25:53 AM UTC+5:30, Juan de Dios Becerra 
wrote:
>
> I am trying to use Google + Domains API in GAE, but when I try to create a 
> GoogleCredential I need to use this:
>
> .setServiceAccountPrivateKeyFromP12File(new java.io.File(filePath))
>
> Where filePath is a .p12 extension file(private key for authentication) 
> this file I put in WEB-INF folder and I granted permissions to all, but 
> when I try to create the GoogleCredential I get this error:
>
> java.security.AccessControlException: access denied 
> (java.io.FilePermission /WEB-INF/file.p12 read)
>
> Obviously the file has the correct name in my folder, this process works 
> in my project which is not AppEngine, so I guess is a problem in the way to 
> access files in AppEngine using java.io.File.
>
> If somebody has idea, I would be very thankful.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to