Example usage for org.springframework.vault.authentication LoginToken isRenewable

List of usage examples for org.springframework.vault.authentication LoginToken isRenewable

Introduction

In this page you can find the example usage for org.springframework.vault.authentication LoginToken isRenewable.

Prototype

public boolean isRenewable() 

Source Link

Usage

From source file:org.springframework.vault.authentication.LifecycleAwareSessionManager.java

private boolean isTokenRenewable() {

    if (token instanceof LoginToken) {

        LoginToken loginToken = (LoginToken) token;
        return loginToken.getLeaseDuration() > 0 && loginToken.isRenewable();
    }//from w  w w .  j  av a 2  s  .c  o m

    return false;
}