Package jadex.ipc.impl.security
Class SecurityInfo
java.lang.Object
jadex.ipc.impl.security.SecurityInfo
- All Implemented Interfaces:
jadex.messaging.ISecurityInfo
Security meta-information of a message;
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Host name, if authenticated.Fixed roles of the sender.Groups containing the sender.Roles based on mapping of the sender.Union of fixed and mapped roles.Groups shared with the sender. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the authenticated host as String.Gets the fixed roles.Gets the authenticated groups of the sender.Gets the mapped roles.getRoles()
Gets the roles.Gets the authenticated groups of the sender.void
setAuthenticatedHostName
(String authhost) Sets the authenticated host name.void
setFixedRoles
(Set<String> roles) Sets the fixed roles.void
Sets the networks.void
setMappedRoles
(Set<String> roles) Sets the mapped roles.void
setSharedNetworks
(Set<String> sharedgroups) Sets the shared groups.toString()
Convert to string.
-
Field Details
-
authhost
Host name, if authenticated. -
groups
Groups containing the sender. -
fixedroles
Fixed roles of the sender. -
mappedroles
Roles based on mapping of the sender. -
roles
Union of fixed and mapped roles.
-
-
Constructor Details
-
SecurityInfo
public SecurityInfo()Creates the infos.
-
-
Method Details
-
getAuthenticatedHostName
Returns the authenticated host as String.- Specified by:
getAuthenticatedHostName
in interfacejadex.messaging.ISecurityInfo
- Returns:
- The authenticated host, null if not authenticated.
-
setAuthenticatedHostName
Sets the authenticated host name.- Parameters:
authhost
- The authenticated host name, null if not authenticated.
-
getGroups
Gets the authenticated groups of the sender.- Specified by:
getGroups
in interfacejadex.messaging.ISecurityInfo
- Returns:
- The authenticated groups of the sender (sorted).
-
setGroups
Sets the networks.- Parameters:
networks
- The networks.
-
getRoles
Gets the roles.- Specified by:
getRoles
in interfacejadex.messaging.ISecurityInfo
- Returns:
- The roles.
-
getFixedRoles
Gets the fixed roles.- Returns:
- The fixed roles.
-
getMappedRoles
Gets the mapped roles.- Returns:
- The mapped roles.
-
setFixedRoles
Sets the fixed roles.- Parameters:
roles
- The fixed roles.
-
setMappedRoles
Sets the mapped roles.- Parameters:
roles
- The mapped roles.
-
toString
Convert to string.
-