Example usage for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl updateToken

List of usage examples for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl updateToken

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication.rememberme JdbcTokenRepositoryImpl updateToken.

Prototype

public void updateToken(String series, String tokenValue, Date lastUsed) 

Source Link

Usage

From source file:org.springframework.security.web.authentication.rememberme.JdbcTokenRepositoryImplTests.java

@Test
public void updateUsesLastUsed() {
    JdbcTemplate template = mock(JdbcTemplate.class);
    Date lastUsed = new Date(1424841314059L);
    JdbcTokenRepositoryImpl repository = new JdbcTokenRepositoryImpl();
    repository.setJdbcTemplate(template);

    repository.updateToken("series", "token", lastUsed);

    verify(template).update(anyString(), anyString(), eq(lastUsed), anyString());
}