|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.sdklib.internal.build.DebugKeyProvider
@Deprecated public class DebugKeyProvider
A provider of a dummy key to sign Android application for debugging purpose.
This provider uses a custom keystore to create and store a key with a known password.
| Nested Class Summary | |
|---|---|
static interface |
DebugKeyProvider.IKeyGenOutput
Deprecated. |
static class |
DebugKeyProvider.KeytoolException
Deprecated. |
| Constructor Summary | |
|---|---|
DebugKeyProvider(java.lang.String osKeyStorePath,
java.lang.String storeType,
DebugKeyProvider.IKeyGenOutput output)
Deprecated. Creates a provider using a keystore at the given location. |
|
| Method Summary | |
|---|---|
java.security.cert.Certificate |
getCertificate()
Deprecated. Returns the debug Certificate to use to sign applications for debug purpose. |
java.security.PrivateKey |
getDebugKey()
Deprecated. Returns the debug PrivateKey to use to sign applications for debug purpose. |
static java.lang.String |
getDefaultKeyStoreOsPath()
Deprecated. Returns the OS path to the default debug keystore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebugKeyProvider(java.lang.String osKeyStorePath,
java.lang.String storeType,
DebugKeyProvider.IKeyGenOutput output)
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.security.UnrecoverableEntryException,
java.io.IOException,
DebugKeyProvider.KeytoolException,
com.android.prefs.AndroidLocation.AndroidLocationException
android, and the key alias is
AndroidDebugKey.
osKeyStorePath - the OS path to the keystore, or null if the default one
is to be used.storeType - an optional keystore type, or null if the default is to
be used.output - an optional DebugKeyProvider.IKeyGenOutput object to get the stdout and stderr
of the keytool process call.
DebugKeyProvider.KeytoolException - If the creation of the debug key failed.
com.android.prefs.AndroidLocation.AndroidLocationException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.security.UnrecoverableEntryException
java.io.IOException| Method Detail |
|---|
public static java.lang.String getDefaultKeyStoreOsPath()
throws DebugKeyProvider.KeytoolException,
com.android.prefs.AndroidLocation.AndroidLocationException
DebugKeyProvider.KeytoolException
com.android.prefs.AndroidLocation.AndroidLocationException
public java.security.PrivateKey getDebugKey()
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.UnrecoverableKeyException,
java.security.UnrecoverableEntryException
PrivateKey to use to sign applications for debug purpose.
null if its creation failed.
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
java.security.UnrecoverableEntryException
public java.security.cert.Certificate getCertificate()
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.UnrecoverableKeyException,
java.security.UnrecoverableEntryException
Certificate to use to sign applications for debug purpose.
null if its creation failed.
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
java.security.UnrecoverableEntryException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||