|
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 mostly used by the UI to allow the user to manipulate the settings, as well as the project properties persistence.
| 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 |
isKeyStorePathExternal()
Indicates whether the keystore path is external to the project or project-relative. |
boolean |
isProjectSpecific()
Indicates whether or not the project has signing specific settings. |
boolean |
isSignProject()
Indicates whether or not the project is to be signed. |
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 |
setProjectSpecific(boolean bValue)
Indicates whether or not the project has specific signing settings. |
void |
setSignProject(boolean bValue)
Indicates whether or not the project is to be signed. |
| Field Detail |
|---|
static final int PASSMETHOD_IN_KEYRING
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuesstatic final int PASSMETHOD_IN_PROJECT
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuesstatic final int PASSMETHOD_PROMPT
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuesstatic final String PROJECT_RELATIVE_PREFIX
setKeyStoreDisplayPath(String),
Constant Field Values| Method Detail |
|---|
void clear()
void copy(ISignatureProperties other)
other - ISignatureProperties object to be copied.
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)String getKeyAlias()
String containing the alias identifying the key and
certificate.setKeyAlias(String)String getKeyPassword()
null if passwords are not being saved.
String containing the key password.setKeyPassword(String)String getKeyStoreDisplayPath()
$/[Folder[/Folder...]]filename". Absolute paths
have OS-dependent form.
String containing displayed path.setKeyStoreDisplayPath(String),
isKeyStorePathExternal()String getKeyStorePassword()
String containing keystore password.setKeyStorePassword(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)String 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)int getPasswordStorageMethod()
PASSMETHOD_PROMPT,
PASSMETHOD_IN_KEYRING or
PASSMETHOD_IN_PROJECT.setPasswordStorageMethod(int),
PASSMETHOD_IN_KEYRING,
PASSMETHOD_IN_PROJECT,
PASSMETHOD_PROMPTboolean isSignProject()
true if the project is to be signed,
false otherwisesetSignProject(boolean)boolean isProjectSpecific()
true if the project has specific signing settings
false in case it used preference settings.setProjectSpecific(boolean)boolean isKeyStorePathExternal()
true if the keystore path is external to the
project, false if it's relative to the current
project.setKeyStoreDisplayPath(String)void setKeyAlias(String strValue)
strValue - String containing the alias identifying the
key and certificate.getKeyAlias()void setKeyPassword(String strValue)
strValue - String containing the key password.getKeyPassword()void setKeyStoreDisplayPath(String path)
path - String containing displayed path.getKeyStoreDisplayPath()void setKeyStorePassword(String strValue)
strValue - String containing keystore password.getKeyStorePassword()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)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)void setPasswordStorageMethod(int nMethod)
nMethod - One of PASSMETHOD_PROMPT,
PASSMETHOD_IN_KEYRING or
PASSMETHOD_IN_PROJECT.getPasswordStorageMethod(),
PASSMETHOD_IN_KEYRING,
PASSMETHOD_IN_PROJECT,
PASSMETHOD_PROMPTvoid setSignProject(boolean bValue)
bValue - true if the project is to be signed,
false otherwise.isSignProject()void setProjectSpecific(boolean bValue)
bValue - true if the project has specific signing
settings false
otherwise.isProjectSpecific()
|
Mobile Tools for Java Release 1.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||