Class InMemoryPresignedTokenStorage
- java.lang.Object
-
- jetbrains.buildServer.serverSide.util.RwProtected
-
- jetbrains.buildServer.serverSide.auth.presigned.impl.InMemoryPresignedTokenStorage
-
- All Implemented Interfaces:
PresignedTokenStorage
public class InMemoryPresignedTokenStorage extends RwProtected implements PresignedTokenStorage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.util.RwProtected
RwProtected.Reader<T>, RwProtected.Writer, RwProtected.WriterWithValue<T>
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.auth.presigned.PresignedTokenStorage
PresignedTokenStorage.DoesNotExistException
-
-
Constructor Summary
Constructors Constructor Description InMemoryPresignedTokenStorage(ScheduledExecutorService scheduledExecutorService, TimeService timeService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createToken(SBuild build, AuthorityHolder parentAuthorityHolder)
void
delete(String tokenValue)
void
deleteAll(SBuild build)
PresignedToken
getToken(String tokenValue)
boolean
isTokenValid(String tokenValue, SBuild forBuild)
int
size()
-
Methods inherited from class jetbrains.buildServer.serverSide.util.RwProtected
read, write, write
-
-
-
-
Constructor Detail
-
InMemoryPresignedTokenStorage
public InMemoryPresignedTokenStorage(@NotNull ScheduledExecutorService scheduledExecutorService, @NotNull TimeService timeService)
-
-
Method Detail
-
getToken
@Nullable public PresignedToken getToken(@NotNull String tokenValue)
- Specified by:
getToken
in interfacePresignedTokenStorage
-
createToken
@NotNull public String createToken(@NotNull SBuild build, @NotNull AuthorityHolder parentAuthorityHolder)
- Specified by:
createToken
in interfacePresignedTokenStorage
-
isTokenValid
public boolean isTokenValid(@NotNull String tokenValue, @NotNull SBuild forBuild)
- Specified by:
isTokenValid
in interfacePresignedTokenStorage
-
deleteAll
public void deleteAll(@NotNull SBuild build)
- Specified by:
deleteAll
in interfacePresignedTokenStorage
-
delete
public void delete(@NotNull String tokenValue) throws PresignedTokenStorage.DoesNotExistException
- Specified by:
delete
in interfacePresignedTokenStorage
- Throws:
PresignedTokenStorage.DoesNotExistException
-
size
public int size()
- Specified by:
size
in interfacePresignedTokenStorage
-
-