|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.trusted.PropertyBasedTrustedApplicationStore
@Transactional public class PropertyBasedTrustedApplicationStore
Implementation of TrustedApplicationStore
using PropertyManager
.
Constructor Summary | |
---|---|
PropertyBasedTrustedApplicationStore(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider,
PropertyManager propertyManager)
|
Method Summary | |
---|---|
void |
addTrustedApplication(com.atlassian.security.auth.trustedapps.TrustedApplication app)
Store the current TrustedApplication . |
boolean |
deleteApplication(String id)
Delete the TrustedApplication with the given ID. |
InternalCurrentApplication |
getCurrentApplication()
Gets the current application. |
com.atlassian.security.auth.trustedapps.TrustedApplication |
getTrustedApplication(String id)
Fetch the TrustedApplication with the given ID. |
Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> |
getTrustedApplications()
Return all the currently stored Trusted Applications. |
void |
storeCurrentApplication(InternalCurrentApplication currentApplication)
Store the given current application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyBasedTrustedApplicationStore(com.atlassian.security.auth.trustedapps.EncryptionProvider encryptionProvider, PropertyManager propertyManager)
Method Detail |
---|
public Iterable<com.atlassian.security.auth.trustedapps.TrustedApplication> getTrustedApplications()
TrustedApplicationStore
getTrustedApplications
in interface TrustedApplicationStore
public boolean deleteApplication(String id)
TrustedApplicationStore
TrustedApplication
with the given ID.
deleteApplication
in interface TrustedApplicationStore
id
- the ID of the application to delete.
public void addTrustedApplication(com.atlassian.security.auth.trustedapps.TrustedApplication app)
TrustedApplicationStore
TrustedApplication
. If the application already exists, update it.
addTrustedApplication
in interface TrustedApplicationStore
app
- the TrustedApplication
to store.public com.atlassian.security.auth.trustedapps.TrustedApplication getTrustedApplication(String id)
TrustedApplicationStore
TrustedApplication
with the given ID.
getTrustedApplication
in interface TrustedApplicationStore
id
- the ID of the TrustedApplication to get
TrustedApplication
or null
if no application exists with this ID.public InternalCurrentApplication getCurrentApplication()
TrustedApplicationStore
getCurrentApplication
in interface TrustedApplicationStore
InternalCurrentApplication
, or null if no current application currently existspublic void storeCurrentApplication(InternalCurrentApplication currentApplication)
TrustedApplicationStore
storeCurrentApplication
in interface TrustedApplicationStore
currentApplication
- the current application to persist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |