|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 persistance 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 .eclipseme metadata file in the project. |
static int |
PASSMETHOD_PROMPT
Password storage method indicating passwords should be requested as required and not stored. |
static java.lang.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. |
java.lang.String |
getAbsoluteKeyStorePath(org.eclipse.core.resources.IProject project)
Returns the absolute file system path to the keystore file. |
java.lang.String |
getKeyAlias()
Returns the "alias" string identifying the key and certificate that will be used to sign the project. |
java.lang.String |
getKeyPassword()
Returns the key password, if passwords are being saved. |
java.lang.String |
getKeyStoreDisplayPath()
Returns the display string representing the keystore path. |
java.lang.String |
getKeyStorePassword()
Returns the password for the keystore file, if passwords are being saved. |
java.lang.String |
getKeyStoreProvider()
Returns the crypto provider string. |
java.lang.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(java.lang.String strValue)
Sets the "alias" string identifying the key and certificate that will be used to sign the project. |
void |
setKeyPassword(java.lang.String strValue)
Sets the key password, if passwords are being saved. |
void |
setKeyStoreDisplayPath(java.lang.String path)
Sets the display string representing the keystore path. |
void |
setKeyStorePassword(java.lang.String strValue)
Sets the password for the keystore file. |
void |
setKeyStoreProvider(java.lang.String strValue)
Sets the crypto provider string. |
void |
setKeyStoreType(java.lang.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 |
public static final int PASSMETHOD_PROMPT
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuespublic static final int PASSMETHOD_IN_KEYRING
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuespublic static final int PASSMETHOD_IN_PROJECT
getPasswordStorageMethod(),
setPasswordStorageMethod(int),
Constant Field Valuespublic static final java.lang.String PROJECT_RELATIVE_PREFIX
setKeyStoreDisplayPath(String),
Constant Field Values| Method Detail |
public void copy(ISignatureProperties other)
other - ISignatureProperties object to be copied.public void clear()
public boolean getSignProject()
true if the project is to be signed, false otherwisesetSignProject(boolean)public void setSignProject(boolean bValue)
bValue - true if the project is to be signed,
false otherwise.getSignProject()public int getPasswordStorageMethod()
PASSMETHOD_PROMPT, PASSMETHOD_IN_KEYRING or
PASSMETHOD_IN_PROJECT.setPasswordStorageMethod(int),
PASSMETHOD_IN_KEYRING,
PASSMETHOD_IN_PROJECT,
PASSMETHOD_PROMPTpublic void setPasswordStorageMethod(int nMethod)
nMethod - One of PASSMETHOD_PROMPT,
PASSMETHOD_IN_KEYRING or
PASSMETHOD_IN_PROJECT.getPasswordStorageMethod(),
PASSMETHOD_IN_KEYRING,
PASSMETHOD_IN_PROJECT,
PASSMETHOD_PROMPTpublic java.lang.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),
java.security.KeyStore#getInstance(java.lang.String),
java.security.KeyStore#getInstance(java.lang.String, java.lang.String)public void setKeyStoreType(java.lang.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(),
java.security.KeyStore#getInstance(java.lang.String),
java.security.KeyStore#getInstance(java.lang.String, java.lang.String)public java.lang.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),
java.security.KeyStore#getInstance(java.lang.String, java.lang.String)public void setKeyStoreProvider(java.lang.String strValue)
null indicates the system
standard type.
strValue - KeyStore provider string, or null to use
the system default provider.getKeyStoreProvider(),
java.security.KeyStore#getInstance(java.lang.String, java.lang.String)public java.lang.String getKeyStorePassword()
String containing keystore password.setKeyStorePassword(String)public void setKeyStorePassword(java.lang.String strValue)
strValue - String containing keystore password.getKeyStorePassword()public java.lang.String getKeyAlias()
String containing the alias identifying the key
and certificate.setKeyAlias(String)public void setKeyAlias(java.lang.String strValue)
strValue - String containing the alias identifying the key
and certificate.getKeyAlias()public java.lang.String getKeyPassword()
null
if passwords are not being saved.
String containing the key password.setKeyPassword(String)public void setKeyPassword(java.lang.String strValue)
strValue - String containing the key password.getKeyPassword()public java.lang.String getKeyStoreDisplayPath()
$/[Folder[/Folder...]]filename".
Absolute paths have OS-dependent form.
String containing displayed path.setKeyStoreDisplayPath(String),
isKeyStorePathExternal()public void setKeyStoreDisplayPath(java.lang.String path)
path - String containing displayed path.getKeyStoreDisplayPath()public java.lang.String getAbsoluteKeyStorePath(org.eclipse.core.resources.IProject project)
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.setKeyStoreDisplayPath(String)public boolean isKeyStorePathExternal()
true if the keystore path is external
to the project, false if it's relative
to the current project.setKeyStoreDisplayPath(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||