|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.security.SecureTokenServiceImpl
public class SecureTokenServiceImpl
This implementation responds to BuildFinishedEvent
and ChainCompletedEvent
by automatically calling invalidate(com.atlassian.bamboo.plan.PlanResultKey)
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.security.SecureTokenService |
---|
BEAN_NAME |
Constructor Summary | |
---|---|
SecureTokenServiceImpl()
|
Method Summary | |
---|---|
SecureToken |
generate(PlanResultKey planResultKey)
Generates a SecureToken for a given PlanResultKey |
java.lang.Class[] |
getHandledEventClasses()
|
void |
handleEvent(com.atlassian.event.Event event)
|
void |
invalidate(PlanResultKey planResultKey)
Invalidates the SecureToken for the given PlanResultKey |
boolean |
isValid(SecureToken tokenToValidate)
Checks if the given SecureToken is valid |
boolean |
isValid(SecureToken tokenToValidate,
PlanResultKey planResultKey)
Checks if the given SecureToken is valid for given PlanResultKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecureTokenServiceImpl()
Method Detail |
---|
@NotNull public SecureToken generate(@NotNull PlanResultKey planResultKey)
SecureTokenService
SecureToken
for a given PlanResultKey
generate
in interface SecureTokenService
public boolean isValid(@NotNull SecureToken tokenToValidate)
SecureTokenService
SecureToken
is valid
isValid
in interface SecureTokenService
public boolean isValid(@NotNull SecureToken tokenToValidate, @NotNull PlanResultKey planResultKey)
SecureTokenService
SecureToken
is valid for given PlanResultKey
isValid
in interface SecureTokenService
public void invalidate(@NotNull PlanResultKey planResultKey)
SecureTokenService
SecureToken
for the given PlanResultKey
invalidate
in interface SecureTokenService
public void handleEvent(com.atlassian.event.Event event)
handleEvent
in interface com.atlassian.event.EventListener
public java.lang.Class[] getHandledEventClasses()
getHandledEventClasses
in interface com.atlassian.event.EventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |