com.atlassian.bamboo.security
Interface SecureTokenService

All Known Implementing Classes:
SecureTokenServiceImpl

public interface SecureTokenService

Produces and manages SecureTokens


Field Summary
static java.lang.String BEAN_NAME
           
 
Method Summary
 SecureToken generate(PlanResultKey planResultKey)
          Generates a SecureToken for a given PlanResultKey
 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
 

Field Detail

BEAN_NAME

static final java.lang.String BEAN_NAME
See Also:
Constant Field Values
Method Detail

generate

@NotNull
SecureToken generate(@NotNull
                             PlanResultKey planResultKey)
Generates a SecureToken for a given PlanResultKey

Parameters:
planResultKey -
Returns:
secureToken

isValid

boolean isValid(@NotNull
                SecureToken tokenToValidate)
Checks if the given SecureToken is valid

Parameters:
tokenToValidate -
Returns:
valid

isValid

boolean isValid(@NotNull
                SecureToken tokenToValidate,
                @NotNull
                PlanResultKey planResultKey)
Checks if the given SecureToken is valid for given PlanResultKey

Parameters:
tokenToValidate -
planResultKey -
Returns:
valid

invalidate

void invalidate(@NotNull
                PlanResultKey planResultKey)
Invalidates the SecureToken for the given PlanResultKey

Parameters:
planResultKey -


Copyright © 2011 Atlassian. All Rights Reserved.