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 StringcreateToken(SBuild build, AuthorityHolder parentAuthorityHolder)voiddelete(String tokenValue)voiddeleteAll(SBuild build)PresignedTokengetToken(String value)booleanisTokenValid(String tokenValue, SBuild forBuild)intsize()
-
-
-
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:
isTokenValidin interfacePresignedTokenStorage
-
size
public int size()
- Specified by:
sizein interfacePresignedTokenStorage
-
getToken
@Nullable public PresignedToken getToken(@NotNull String value)
- Specified by:
getTokenin interfacePresignedTokenStorage
-
createToken
@NotNull public String createToken(@NotNull SBuild build, @NotNull AuthorityHolder parentAuthorityHolder)
- Specified by:
createTokenin interfacePresignedTokenStorage
-
delete
public void delete(@NotNull String tokenValue)- Specified by:
deletein interfacePresignedTokenStorage
-
deleteAll
public void deleteAll(@NotNull SBuild build)- Specified by:
deleteAllin interfacePresignedTokenStorage
-
-