mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
added getParentKey() to AccessToken interface
This commit is contained in:
@@ -80,8 +80,20 @@ public interface AccessToken {
|
||||
*/
|
||||
Date getExpiration();
|
||||
|
||||
/**
|
||||
* Returns refresh expiration of token.
|
||||
*
|
||||
* @return refresh expiration
|
||||
*/
|
||||
Optional<Date> getRefreshExpiration();
|
||||
|
||||
/**
|
||||
* Returns id of the parent key.
|
||||
*
|
||||
* @return parent key id
|
||||
*/
|
||||
Optional<String> getParentKey();
|
||||
|
||||
/**
|
||||
* Returns the scope of the token. The scope is able to reduce the permissions of the subject in the context of this
|
||||
* token. For example we could issue a token which can only be used to read a single repository. for more informations
|
||||
|
||||
Reference in New Issue
Block a user