We are deployed on google app engine and we have a requirement to sign a request that we make to external identity provider(saml based).I read the appidentity documentation and have been able to retrieve the public key.I know that every app deployed on google app engine has its own private key. I need reference to that private key as java.security.PrivateKey;so that i can sign my request. Another reason is i am using openSAML for creating SAML Requests and for signing my requests, I need to set the privateKey in a Credential Object.
我们部署在谷歌应用引擎上,我们需要签署我们向外部身份提供商(基于saml)发出的请求。我阅读了appidentity文档,并且能够检索公钥。我知道每个部署的应用都是谷歌应用引擎有自己的私钥。我需要引用该私钥作为java.security.PrivateKey;以便我可以签署我的请求。另一个原因是我使用openSAML创建SAML请求和签署我的请求,我需要在一个凭据对象中设置privateKey。
Anyone out there who can help me with my problem ? Is this even doable in google app engine?
有谁可以帮助我解决我的问题?这在谷歌应用程序引擎中甚至可行吗?
1 个解决方案
#1
0
There's is no way to download the private key. However, the method signForApp is provided in the AppIdentityService. This method allows you to sign an arbitrary byte array.
没有办法下载私钥。但是,方法signForApp在AppIdentityService中提供。此方法允许您对任意字节数组进行签名。
#1
0
There's is no way to download the private key. However, the method signForApp is provided in the AppIdentityService. This method allows you to sign an arbitrary byte array.
没有办法下载私钥。但是,方法signForApp在AppIdentityService中提供。此方法允许您对任意字节数组进行签名。