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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPerunPrincipal(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 TypeMethodDescriptionbooleangetActor()Returns actor string representation.intgetRoles()longgetUser()intinthashCode()booleanvoidsetAdditionalInformations(Map<String, String> additionalInformations) voidsetAuthzInitialized(boolean authzInitialized) voidsetExtSourceLoa(int extSourceLoa) voidsetExtSourceName(String extSourceName) voidsetExtSourceType(String extSourceType) voidsetReferer(String referer) voidsetRoles(AuthzRoles authzRoles) voidsetRolesUpdatedAt(long rolesUpdatedAt) voidtoString()
-
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
-