java.lang.Object
org.codeability.sharing.plugins.api.UserPrincipal
data to identify or authorize a user.
- Autor:
- Michael Breu
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungempty constructor for JSON.UserPrincipal(String name, String gitLabAccessToken) creates a user principal to be used in context of this api -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetName()voidsetGitLabAccessToken(String gitLabAccessToken) void
-
Konstruktordetails
-
UserPrincipal
creates a user principal to be used in context of this api- Parameter:
name- the user name. Just for informationgitLabAccessToken- the gitlab access token
-
UserPrincipal
public UserPrincipal()empty constructor for JSON.
-
-
Methodendetails
-
getName
- Gibt zurück:
- an informative name of the user
-
setName
- Parameter:
name- the name to set
-
getGitLabAccessToken
- Gibt zurück:
- the oAuth2 access token of the current user. This may be used to load permissions.
-
setGitLabAccessToken
- Parameter:
gitLabAccessToken- the gitLabAccessToken to set
-