Package com.axelor.auth.pac4j
Class AuthPac4jProfileService
- java.lang.Object
-
- com.axelor.auth.pac4j.AuthPac4jProfileService
-
@Singleton public class AuthPac4jProfileService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
GROUP_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description AuthPac4jProfileService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
downloadUrl(URL url)
protected byte[]
downloadUrl(URL url, Map<String,String> requestProperties)
String
getEmail(org.pac4j.core.profile.CommonProfile profile)
protected Group
getGroup(String groupCode)
Group
getGroup(org.pac4j.core.profile.CommonProfile profile)
Group
getGroup(org.pac4j.core.profile.CommonProfile profile, String defaultGroupCode)
byte[]
getImage(org.pac4j.core.profile.CommonProfile profile)
String
getLanguage(org.pac4j.core.profile.CommonProfile profile)
String
getLanguage(org.pac4j.core.profile.CommonProfile profile, String defaultLanguage)
protected Set<String>
getLanguages()
String
getName(org.pac4j.core.profile.CommonProfile profile)
Set<Permission>
getPermissions(org.pac4j.core.profile.CommonProfile profile)
Set<Role>
getRoles(org.pac4j.core.profile.CommonProfile profile)
String
getUserIdentifier(org.pac4j.core.profile.CommonProfile profile)
-
-
-
Field Detail
-
GROUP_ATTRIBUTE
public static final String GROUP_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserIdentifier
public String getUserIdentifier(org.pac4j.core.profile.CommonProfile profile)
-
getName
public String getName(org.pac4j.core.profile.CommonProfile profile)
-
getEmail
@Nullable public String getEmail(org.pac4j.core.profile.CommonProfile profile)
-
getLanguage
@Nullable public String getLanguage(org.pac4j.core.profile.CommonProfile profile)
-
getLanguage
@Nullable public String getLanguage(org.pac4j.core.profile.CommonProfile profile, String defaultLanguage)
-
getImage
@Nullable public byte[] getImage(org.pac4j.core.profile.CommonProfile profile) throws IOException
- Throws:
IOException
-
getGroup
@Nullable public Group getGroup(org.pac4j.core.profile.CommonProfile profile)
-
getGroup
@Nullable public Group getGroup(org.pac4j.core.profile.CommonProfile profile, String defaultGroupCode)
-
getPermissions
public Set<Permission> getPermissions(org.pac4j.core.profile.CommonProfile profile)
-
downloadUrl
protected byte[] downloadUrl(URL url) throws IOException
- Throws:
IOException
-
downloadUrl
protected byte[] downloadUrl(URL url, Map<String,String> requestProperties) throws IOException
- Throws:
IOException
-
-