|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SecurityManagement
The Security Managment Provider provides the interface to interact with Key Stores.
| Method Summary | |
|---|---|
boolean |
changeStorePassword(java.lang.String newStorePass,
java.lang.String storePass,
org.eclipse.core.runtime.IProgressMonitor monitor)
Changes the password of the current keystore. |
boolean |
createNewKey(java.lang.String alias,
java.lang.String commonName,
java.lang.String orgUnit,
java.lang.String orgName,
java.lang.String localityName,
java.lang.String stateName,
java.lang.String country,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a new key pair with the information passed in. |
boolean |
deleteKey(org.eclipse.core.runtime.IProgressMonitor monitor)
Deletes the current key pair, from the current keystore |
boolean |
generateCSR(java.lang.String certFile,
org.eclipse.core.runtime.IProgressMonitor monitor)
Generates a new CSR. |
java.lang.String |
getAliaskey()
Returns the current key alias. |
java.lang.String |
getCertificateInfo(org.eclipse.core.runtime.IProgressMonitor monitor)
Get the certificates associated with the alias key/keystore. |
java.lang.String |
getKeyStoreNameLoc()
Returns the location of the current keystore. |
java.lang.String |
getPassWrd()
Returns the current keystore password. |
java.lang.String |
getStoreType()
Returns the keystore type used by keystore. |
java.lang.String |
getToolLocation(org.eclipse.core.runtime.IProgressMonitor monitor)
Implementations that rely on an external security tool, are responsible for persistant storage of the tool location value. |
java.lang.String |
getValidity()
Returns the validity of the current key pair. |
boolean |
importSignedCert(java.lang.String certFile,
org.eclipse.core.runtime.IProgressMonitor monitor)
Imports signed certificate to current keystore. |
boolean |
isKeyStoreSelected()
Return true if the keystore name and location were set during this session. |
java.lang.String[] |
openKeyStore(java.lang.String keyStore,
java.lang.String storePass,
org.eclipse.core.runtime.IProgressMonitor monitor)
Accesses an existing keystore, opens the keystore and returns a string array containing the key aliases within the keystore. |
void |
resetValues()
Resets all values including keystore, password, alias key, etc |
void |
setAliaskey(java.lang.String aliasKey)
Sets the alias for the current key pair. |
void |
setKeyStoreNameLoc(java.lang.String keyStoreNameLoc)
Sets the Key Store name location. |
void |
setPassWrd(java.lang.String passWrd)
Sets the password for the current keystore. |
void |
setStoreType(java.lang.String storeType)
Sets the type of keystore to generate. |
void |
setValidity(java.lang.String validity)
Sets the validity period for the certificate. |
void |
setValues(java.lang.String loc,
java.lang.String alias,
java.lang.String psswd,
java.lang.String strtype)
Allows users of this class to set the keystore values. |
void |
storeToolLocation(java.lang.String loc,
org.eclipse.core.runtime.IProgressMonitor monitor)
Implementations that rely on an external security tool, are responsible for persistant storage of the tool location value. |
| Methods inherited from interface org.eclipse.mtj.api.extension.MtjExtension |
|---|
getDescription, getId, getType, getVendor, getVersion, isActive, setActive, setDescription, setId, setType, setVendor, setVersion |
| Methods inherited from interface org.eclipse.emf.ecore.EObject |
|---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
| Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
|---|
eAdapters, eDeliver, eNotify, eSetDeliver |
| Method Detail |
|---|
java.lang.String[] openKeyStore(java.lang.String keyStore,
java.lang.String storePass,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
keyStore - storePass - monitor -
org.eclipse.mtj.exception.MtjException
java.lang.String getStoreType()
throws org.eclipse.mtj.exception.MtjException
org.eclipse.mtj.exception.MtjException
java.lang.String getAliaskey()
throws org.eclipse.mtj.exception.MtjException
org.eclipse.mtj.exception.MtjException
java.lang.String getPassWrd()
throws org.eclipse.mtj.exception.MtjException
org.eclipse.mtj.exception.MtjException
java.lang.String getKeyStoreNameLoc()
throws org.eclipse.mtj.exception.MtjException
org.eclipse.mtj.exception.MtjException
java.lang.String getValidity()
throws org.eclipse.mtj.exception.MtjException
org.eclipse.mtj.exception.MtjException
void setStoreType(java.lang.String storeType)
throws org.eclipse.mtj.exception.MtjException
storeType -
org.eclipse.mtj.exception.MtjException
void setAliaskey(java.lang.String aliasKey)
throws org.eclipse.mtj.exception.MtjException
aliasKey -
org.eclipse.mtj.exception.MtjException
void setPassWrd(java.lang.String passWrd)
throws org.eclipse.mtj.exception.MtjException
passWrd -
org.eclipse.mtj.exception.MtjException
void setKeyStoreNameLoc(java.lang.String keyStoreNameLoc)
throws org.eclipse.mtj.exception.MtjException
keyStoreNameLoc -
org.eclipse.mtj.exception.MtjException
void setValidity(java.lang.String validity)
throws org.eclipse.mtj.exception.MtjException
validity -
org.eclipse.mtj.exception.MtjException
void setValues(java.lang.String loc,
java.lang.String alias,
java.lang.String psswd,
java.lang.String strtype)
throws org.eclipse.mtj.exception.MtjException
loc - alias - psswd - strtype -
org.eclipse.mtj.exception.MtjException
void resetValues()
throws org.eclipse.mtj.exception.MtjException
org.eclipse.mtj.exception.MtjException
boolean isKeyStoreSelected()
throws org.eclipse.mtj.exception.MtjException
org.eclipse.mtj.exception.MtjException
boolean generateCSR(java.lang.String certFile,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
certFile - - location and name of file to generatemonitor -
org.eclipse.mtj.exception.MtjException
boolean importSignedCert(java.lang.String certFile,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
certFile - - location of signed certificate to importmonitor -
org.eclipse.mtj.exception.MtjException
boolean deleteKey(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
monitor -
org.eclipse.mtj.exception.MtjException
boolean changeStorePassword(java.lang.String newStorePass,
java.lang.String storePass,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
newStorePass - - Changes the keystore password to newStorePass.storePass - - Previous keystore password.monitor -
org.eclipse.mtj.exception.MtjException
boolean createNewKey(java.lang.String alias,
java.lang.String commonName,
java.lang.String orgUnit,
java.lang.String orgName,
java.lang.String localityName,
java.lang.String stateName,
java.lang.String country,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
alias - - New key pair alias.commonName - - New key pair common name.orgUnit - - New key pair organization unit name.orgName - - New key pair organization name.localityName - - New key pair locality name.stateName - - New key pair state name.country - - New key pair country name.monitor - - Progress monitor.
org.eclipse.mtj.exception.MtjException
java.lang.String getCertificateInfo(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
monitor -
org.eclipse.mtj.exception.MtjException
java.lang.String getToolLocation(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
monitor -
org.eclipse.mtj.exception.MtjException
void storeToolLocation(java.lang.String loc,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.mtj.exception.MtjException
loc - - Directory where tool resides.monitor -
org.eclipse.mtj.exception.MtjException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||