Class SecurityInfo

java.lang.Object
jadex.ipc.impl.security.SecurityInfo
All Implemented Interfaces:
jadex.messaging.ISecurityInfo

public class SecurityInfo extends Object implements jadex.messaging.ISecurityInfo
Security meta-information of a message;
  • Field Details

    • authhost

      protected String authhost
      Host name, if authenticated.
    • sharedgroups

      protected Set<String> sharedgroups
      Groups shared with the sender.
    • groups

      protected Set<String> groups
      Groups containing the sender.
    • fixedroles

      protected volatile Set<String> fixedroles
      Fixed roles of the sender.
    • mappedroles

      protected volatile Set<String> mappedroles
      Roles based on mapping of the sender.
    • roles

      protected volatile Set<String> roles
      Union of fixed and mapped roles.
  • Constructor Details

    • SecurityInfo

      public SecurityInfo()
      Creates the infos.
  • Method Details

    • getAuthenticatedHostName

      public String getAuthenticatedHostName()
      Returns the authenticated host as String.
      Specified by:
      getAuthenticatedHostName in interface jadex.messaging.ISecurityInfo
      Returns:
      The authenticated host, null if not authenticated.
    • setAuthenticatedHostName

      public void setAuthenticatedHostName(String authhost)
      Sets the authenticated host name.
      Parameters:
      authhost - The authenticated host name, null if not authenticated.
    • getGroups

      public Set<String> getGroups()
      Gets the authenticated groups of the sender.
      Specified by:
      getGroups in interface jadex.messaging.ISecurityInfo
      Returns:
      The authenticated groups of the sender (sorted).
    • setGroups

      public void setGroups(Set<String> groups)
      Sets the networks.
      Parameters:
      networks - The networks.
    • getSharedGroups

      public Set<String> getSharedGroups()
      Gets the authenticated groups of the sender.
      Specified by:
      getSharedGroups in interface jadex.messaging.ISecurityInfo
      Returns:
      The authenticated groups of the sender (sorted).
    • setSharedNetworks

      public void setSharedNetworks(Set<String> sharedgroups)
      Sets the shared groups.
      Parameters:
      sharedgroups - The groups.
    • getRoles

      public Set<String> getRoles()
      Gets the roles.
      Specified by:
      getRoles in interface jadex.messaging.ISecurityInfo
      Returns:
      The roles.
    • getFixedRoles

      public Set<String> getFixedRoles()
      Gets the fixed roles.
      Returns:
      The fixed roles.
    • getMappedRoles

      public Set<String> getMappedRoles()
      Gets the mapped roles.
      Returns:
      The mapped roles.
    • setFixedRoles

      public void setFixedRoles(Set<String> roles)
      Sets the fixed roles.
      Parameters:
      roles - The fixed roles.
    • setMappedRoles

      public void setMappedRoles(Set<String> roles)
      Sets the mapped roles.
      Parameters:
      roles - The mapped roles.
    • toString

      public String toString()
      Convert to string.
      Overrides:
      toString in class Object