KeyStoreManager.GetGrantedKeyFromId(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the key with the specified id
that was previously shared with the
app.
[Android.Runtime.Register("getGrantedKeyFromId", "(J)Ljava/security/Key;", "", ApiSince=36)]
public Java.Security.IKey GetGrantedKeyFromId(long id);
[<Android.Runtime.Register("getGrantedKeyFromId", "(J)Ljava/security/Key;", "", ApiSince=36)>]
member this.GetGrantedKeyFromId : int64 -> Java.Security.IKey
Parameters
- id
- Int64
the ID of the key that was shared with the app
Returns
the Key
that was shared with the app
- Attributes
Remarks
Returns the key with the specified id
that was previously shared with the app.
This method can return instances of both javax.crypto.SecretKey
and java.security.PrivateKey
. If a key with the provide id
has not been granted to the caller, then an UnrecoverableKeyException
is thrown.
Java documentation for android.security.keystore.KeyStoreManager.getGrantedKeyFromId(long)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.