Package cz.metacentrum.perun.core.api
Class PerunPrincipal
java.lang.Object
cz.metacentrum.perun.core.api.PerunPrincipal
Identification of the acting person.
- Author:
- Martin Kuba
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPerunPrincipal
(Application app, Map<String, String> additionalAttributes) PerunPrincipal
(String actor, String extSourceName, String extSourceType) Creates a new instance for a given string.PerunPrincipal
(String actor, String extSourceName, String extSourceType, int extSourceLoa) PerunPrincipal
(String actor, String extSourceName, String extSourceType, int extSourceLoa, Map<String, String> additionalInformations) PerunPrincipal
(String actor, String extSourceName, String extSourceType, int extSourceLoa, Map<String, String> additionalInformations, String referer) PerunPrincipal
(String actor, String extSourceName, String extSourceType, User user) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getActor()
Returns actor string representation.int
getRoles()
long
getUser()
int
int
hashCode()
boolean
void
setAdditionalInformations
(Map<String, String> additionalInformations) void
setAuthzInitialized
(boolean authzInitialized) void
setExtSourceLoa
(int extSourceLoa) void
setExtSourceName
(String extSourceName) void
setExtSourceType
(String extSourceType) void
setReferer
(String referer) void
setRoles
(AuthzRoles authzRoles) void
setRolesUpdatedAt
(long rolesUpdatedAt) void
toString()
-
Field Details
-
AUTH_TIME
- See Also:
-
ACR_MFA
- See Also:
-
ISSUER
- See Also:
-
ACCESS_TOKEN
- See Also:
-
-
Constructor Details
-
PerunPrincipal
Creates a new instance for a given string.- Parameters:
actor
- string identifying the user in Grouper- Throws:
InternalErrorException
- actor is null
-
PerunPrincipal
-
PerunPrincipal
-
PerunPrincipal
-
PerunPrincipal
-
PerunPrincipal
-
-
Method Details
-
equals
-
getActor
Returns actor string representation.- Returns:
- string representing actor
-
getAdditionalInformations
-
setAdditionalInformations
-
getExtSourceLoa
public int getExtSourceLoa() -
setExtSourceLoa
public void setExtSourceLoa(int extSourceLoa) -
getExtSourceName
-
setExtSourceName
-
getExtSourceType
-
setExtSourceType
-
getReferer
-
setReferer
-
getRoles
-
setRoles
-
getRolesUpdatedAt
public long getRolesUpdatedAt() -
setRolesUpdatedAt
public void setRolesUpdatedAt(long rolesUpdatedAt) -
getUser
-
setUser
-
getUserId
public int getUserId() -
hashCode
public int hashCode() -
isAuthzInitialized
public boolean isAuthzInitialized() -
setAuthzInitialized
public void setAuthzInitialized(boolean authzInitialized) -
toString
-