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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPerunPrincipal(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 SummaryModifier 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- 
PerunPrincipalCreates 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
- 
getActorReturns actor string representation.- Returns:
- string representing actor
 
- 
getAdditionalInformations
- 
setAdditionalInformations
- 
getExtSourceLoapublic int getExtSourceLoa()
- 
setExtSourceLoapublic void setExtSourceLoa(int extSourceLoa) 
- 
getExtSourceName
- 
setExtSourceName
- 
getExtSourceType
- 
setExtSourceType
- 
getReferer
- 
setReferer
- 
getRoles
- 
setRoles
- 
getRolesUpdatedAtpublic long getRolesUpdatedAt()
- 
setRolesUpdatedAtpublic void setRolesUpdatedAt(long rolesUpdatedAt) 
- 
getUser
- 
setUser
- 
getUserIdpublic int getUserId()
- 
hashCodepublic int hashCode()
- 
isAuthzInitializedpublic boolean isAuthzInitialized()
- 
setAuthzInitializedpublic void setAuthzInitialized(boolean authzInitialized) 
- 
toString
 
-