public class LinkSigningKeyEncryptor extends Object
Constructor and Description |
---|
LinkSigningKeyEncryptor(@NonNull IAppStorePublicKeyProvider appStorePublicKeyProvider) |
Modifier and Type | Method and Description |
---|---|
String |
encryptLinkSigningKey(@NonNull String encodedKey,
@NonNull IRequestContext requestContext)
Encrypts linkSigningKey using AppStore public key corresponding to an
application.
|
@Inject public LinkSigningKeyEncryptor(@NonNull @NonNull IAppStorePublicKeyProvider appStorePublicKeyProvider)
public String encryptLinkSigningKey(@NonNull @NonNull String encodedKey, @NonNull @NonNull IRequestContext requestContext) throws TokenException
encodedKey
- LinkSigningKey; a PrivateKey
encoded as
Base64/PKCS#8 string.requestContext
- IRequestContext
object which holds contextual
information required to choose the appropriate public
key to use for this request when there are multiple
keys pertaining to multiple apps and revisions.AppStorePublicKeyException
- is thrown if there are any problems encountered
in retrieving or using AppStore public key.InvalidKeyException
- is thrown if linkSigningKey is not a valid
EC private key.TokenException
- is thrown for any unexpected failures.