Class OAuth2CurrentUserProvider
- java.lang.Object
-
- com.flowable.core.spring.security.oauth2.OAuth2CurrentUserProvider
-
- All Implemented Interfaces:
CurrentUserProvider
public class OAuth2CurrentUserProvider extends Object implements CurrentUserProvider
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected String
displayNameAttribute
protected String
emailAttribute
protected String
firstNameAttribute
protected String
lastNameAttribute
-
Constructor Summary
Constructors Constructor Description OAuth2CurrentUserProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrentUserResponse
getCurrentUser(Principal principal)
String
getDisplayNameAttribute()
String
getEmailAttribute()
String
getFirstNameAttribute()
String
getLastNameAttribute()
void
setDisplayNameAttribute(String displayNameAttribute)
void
setEmailAttribute(String emailAttribute)
void
setFirstNameAttribute(String firstNameAttribute)
void
setLastNameAttribute(String lastNameAttribute)
boolean
supports(Principal principal)
-
-
-
Method Detail
-
getCurrentUser
public CurrentUserResponse getCurrentUser(Principal principal)
- Specified by:
getCurrentUser
in interfaceCurrentUserProvider
-
supports
public boolean supports(Principal principal)
- Specified by:
supports
in interfaceCurrentUserProvider
-
getFirstNameAttribute
public String getFirstNameAttribute()
-
setFirstNameAttribute
public void setFirstNameAttribute(String firstNameAttribute)
-
getLastNameAttribute
public String getLastNameAttribute()
-
setLastNameAttribute
public void setLastNameAttribute(String lastNameAttribute)
-
getDisplayNameAttribute
public String getDisplayNameAttribute()
-
setDisplayNameAttribute
public void setDisplayNameAttribute(String displayNameAttribute)
-
getEmailAttribute
public String getEmailAttribute()
-
setEmailAttribute
public void setEmailAttribute(String emailAttribute)
-
-