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(ResultKey resultKey)
          Generates a SecureToken for a given PlanResultKey
 void invalidate(ResultKey resultKey)
          Invalidates the SecureToken for the given ResultKey
 boolean isValid(SecureToken tokenToValidate)
          Checks if the given SecureToken is valid
 boolean isValid(SecureToken tokenToValidate, ResultKey resultKey)
          Checks if the given SecureToken is valid for given ResultKey
 

Field Detail

BEAN_NAME

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

generate

@NotNull
SecureToken generate(@NotNull
                             ResultKey resultKey)
Generates a SecureToken for a given PlanResultKey

Parameters:
resultKey -
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
                ResultKey resultKey)
Checks if the given SecureToken is valid for given ResultKey

Parameters:
tokenToValidate -
resultKey -
Returns:
valid

invalidate

void invalidate(@NotNull
                ResultKey resultKey)
Invalidates the SecureToken for the given ResultKey

Parameters:
resultKey -


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.