|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.security.auth.trustedapps.DefaultCurrentApplicationStore
public class DefaultCurrentApplicationStore
Constructor Summary | |
---|---|
DefaultCurrentApplicationStore(ApplicationProperties applicationProperties,
JiraLicenseService jiraLicenseService,
com.atlassian.event.api.EventPublisher publisher)
|
Method Summary | |
---|---|
com.atlassian.security.auth.trustedapps.CurrentApplication |
getCurrentApplication()
Return JIRA's CurrentApplication . |
KeyPair |
getKeyPair()
Get the current KeyPair used by trusted apps. |
void |
onClearCache(ClearCacheEvent event)
|
void |
setCurrentApplication(String applicationId,
KeyPair pair)
Set the current application's (aka JIRA's) trusted application properties. |
void |
setCurrentApplication(String applicationId,
String publicKey,
String privateKey)
Set the current application's (aka JIRA's) trusted application properties. |
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCurrentApplicationStore(ApplicationProperties applicationProperties, JiraLicenseService jiraLicenseService, com.atlassian.event.api.EventPublisher publisher)
Method Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public com.atlassian.security.auth.trustedapps.CurrentApplication getCurrentApplication()
CurrentApplicationStore
JIRA's CurrentApplication
. Will create a
CurrentApplication if one does not exist or has been set.
getCurrentApplication
in interface CurrentApplicationStore
public KeyPair getKeyPair()
CurrentApplicationStore
getKeyPair
in interface CurrentApplicationStore
KeyPair
used by trustedapps.public void setCurrentApplication(String applicationId, KeyPair pair)
CurrentApplicationStore
setCurrentApplication
in interface CurrentApplicationStore
applicationId
- the name of JIRA's trusted application. Passing an empty or null string will result
in an IllegalArgumentException
.pair
- public and private key used for trusted apps. Passing null for pair or either the private or
public key will result in an IllegalArgumentException
.public void setCurrentApplication(String applicationId, String publicKey, String privateKey)
CurrentApplicationStore
setCurrentApplication
in interface CurrentApplicationStore
applicationId
- the name of JIRA's trusted application. Passing null will set an
automatically generated ID.publicKey
- string representation of the public key. Must be a valid key or a
IllegalArgumentException
will be thrown.privateKey
- string representation of the private key. Must be valid key or a
IllegalArgumentException
will be thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |