Class SecurePresignedTokenStorage
- java.lang.Object
-
- jetbrains.buildServer.serverSide.auth.presigned.impl.SecurePresignedTokenStorage
-
- All Implemented Interfaces:
PresignedTokenStorage
public class SecurePresignedTokenStorage extends Object implements PresignedTokenStorage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.serverSide.auth.presigned.PresignedTokenStorage
PresignedTokenStorage.DoesNotExistException
-
-
Constructor Summary
Constructors Constructor Description SecurePresignedTokenStorage(InMemoryPresignedTokenStorage delegate, SecurityContextEx securityContext, BuildServerEx buildServerEx)
-
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 value)
boolean
isTokenValid(String tokenValue, SBuild forBuild)
int
size()
-
-
-
Constructor Detail
-
SecurePresignedTokenStorage
public SecurePresignedTokenStorage(@NotNull InMemoryPresignedTokenStorage delegate, @NotNull SecurityContextEx securityContext, @NotNull BuildServerEx buildServerEx)
-
-
Method Detail
-
isTokenValid
public boolean isTokenValid(@NotNull String tokenValue, @NotNull SBuild forBuild)
- Specified by:
isTokenValid
in interfacePresignedTokenStorage
-
size
public int size()
- Specified by:
size
in interfacePresignedTokenStorage
-
getToken
@Nullable public PresignedToken getToken(@NotNull String value)
- Specified by:
getToken
in interfacePresignedTokenStorage
-
createToken
@NotNull public String createToken(@NotNull SBuild build, @NotNull AuthorityHolder parentAuthorityHolder)
- Specified by:
createToken
in interfacePresignedTokenStorage
-
delete
public void delete(@NotNull String tokenValue)
- Specified by:
delete
in interfacePresignedTokenStorage
-
deleteAll
public void deleteAll(@NotNull SBuild build)
- Specified by:
deleteAll
in interfacePresignedTokenStorage
-
-