|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISignatureProperties
Classes implementing this interface are designed to hold the various project-specific properties relating to potential signing operations. It is used by the dialog class that allows the user to manipulate the settings, as well as the project properties persistence stuff.
Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.
| Field Summary | |
|---|---|
static int |
PASSMETHOD_IN_KEYRING
Password storage method indicating passwords should be stored in the user's Eclipse keyring |
static int |
PASSMETHOD_IN_PROJECT
Password storage method indicating passwords should be stored in the .mtj metadata file in the project. |
static int |
PASSMETHOD_PROMPT
Password storage method indicating passwords should be requested as required and not stored. |
static String |
PROJECT_RELATIVE_PREFIX
String used to prefix project-relative paths in display strings. |
| Method Summary | |
|---|---|
void |
clear()
Resets the class to its default values |
void |
copy(ISignatureProperties other)
Copy the values from another instance. |
String |
getAbsoluteKeyStorePath(IProject project)
Returns the absolute file system path to the keystore file. |
String |
getKeyAlias()
Returns the "alias" string identifying the key and certificate that will be used to sign the project. |
String |
getKeyPassword()
Returns the key password, if passwords are being saved. |
String |
getKeyStoreDisplayPath()
Returns the display string representing the keystore path. |
String |
getKeyStorePassword()
Returns the password for the keystore file, if passwords are being saved. |
String |
getKeyStoreProvider()
Returns the crypto provider string. |
String |
getKeyStoreType()
Type of the keystore file. |
int |
getPasswordStorageMethod()
Returns the password storage method. |
boolean |
getSignProject()
Indicates whether or not the project is to be signed. |
boolean |
isKeyStorePathExternal()
Indicates whether the keystore path is external to the project or project-relative. |
void |
setKeyAlias(String strValue)
Sets the "alias" string identifying the key and certificate that will be used to sign the project. |
void |
setKeyPassword(String strValue)
Sets the key password, if passwords are being saved. |
void |
setKeyStoreDisplayPath(String path)
Sets the display string representing the keystore path. |
void |
setKeyStorePassword(String strValue)
Sets the password for the keystore file. |
void |
setKeyStoreProvider(String strValue)
Sets the crypto provider string. |
void |
setKeyStoreType(String strValue)
Type of the keystore file. |
void |
setPasswordStorageMethod(int nMethod)
Sets the password storage method. |
void |
setSignProject(boolean bValue)
Indicates whether or not the project is to be signed. |
| Field Detail |
|---|
static final int PASSMETHOD_PROMPT
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuesstatic final int PASSMETHOD_IN_KEYRING
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuesstatic final int PASSMETHOD_IN_PROJECT
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuesstatic final String PROJECT_RELATIVE_PREFIX
setKeyStoreDisplayPath(String),
Constant Field Values| Method Detail |
|---|
void copy(ISignatureProperties other)
other - ISignatureProperties object to be copied.void clear()
boolean getSignProject()
true if the project is to be signed,
false otherwisesetSignProject(boolean)void setSignProject(boolean bValue)
bValue - true if the project is to be signed,
false otherwise.getSignProject()int getPasswordStorageMethod()
PASSMETHOD_PROMPT,
PASSMETHOD_IN_KEYRING or
PASSMETHOD_IN_PROJECT.setPasswordStorageMethod(int),
PASSMETHOD_IN_KEYRING,
PASSMETHOD_IN_PROJECT,
PASSMETHOD_PROMPTvoid setPasswordStorageMethod(int nMethod)
nMethod - One of PASSMETHOD_PROMPT,
PASSMETHOD_IN_KEYRING or
PASSMETHOD_IN_PROJECT.getPasswordStorageMethod(),
PASSMETHOD_IN_KEYRING,
PASSMETHOD_IN_PROJECT,
PASSMETHOD_PROMPTString getKeyStoreType()
null indicates the system
standard type. This string is passed to KeyStore.getInstance
as part of loading the keystore.
String indicating keystore file type.setKeyStoreType(String),
KeyStore.getInstance(java.lang.String),
KeyStore.getInstance(java.lang.String,
java.lang.String)void setKeyStoreType(String strValue)
null indicates the system
standard type. This string is passed to KeyStore.getInstance
as part of loading the keystore.
strValue - KeyStore type string, or null to use the
system default type.getKeyStoreType(),
KeyStore.getInstance(java.lang.String),
KeyStore.getInstance(java.lang.String,
java.lang.String)String getKeyStoreProvider()
null indicates the
system standard type. This string is passed to
KeyStore.getInstance as part of loading the keystore.
null to use the
system default provider.setKeyStoreProvider(String),
KeyStore.getInstance(java.lang.String,
java.lang.String)void setKeyStoreProvider(String strValue)
null indicates the system
standard type.
strValue - KeyStore provider string, or null to use
the system default provider.getKeyStoreProvider(),
KeyStore.getInstance(java.lang.String,
java.lang.String)String getKeyStorePassword()
String containing keystore password.setKeyStorePassword(String)void setKeyStorePassword(String strValue)
strValue - String containing keystore password.getKeyStorePassword()String getKeyAlias()
String containing the alias identifying the key
and certificate.setKeyAlias(String)void setKeyAlias(String strValue)
strValue - String containing the alias identifying
the key and certificate.getKeyAlias()String getKeyPassword()
null if passwords are not being saved.
String containing the key password.setKeyPassword(String)void setKeyPassword(String strValue)
strValue - String containing the key password.getKeyPassword()String getKeyStoreDisplayPath()
$/[Folder[/Folder...]]filename". Absolute
paths have OS-dependent form.
String containing displayed path.setKeyStoreDisplayPath(String),
isKeyStorePathExternal()void setKeyStoreDisplayPath(String path)
path - String containing displayed path.getKeyStoreDisplayPath()
String getAbsoluteKeyStorePath(IProject project)
throws CoreException
project instance is used to convert a project-relative
path to an absolute path.
project - IProject to which this
ISignatureProperties belongs.
String containing absolute path to keystore file.
CoreExceptionsetKeyStoreDisplayPath(String)boolean isKeyStorePathExternal()
true if the keystore path is external to the
project, false if it's relative to the current
project.setKeyStoreDisplayPath(String)
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||