Class SecurityInfo

  • All Implemented Interfaces:
    ISecurityInfo

    public class SecurityInfo
    extends java.lang.Object
    implements ISecurityInfo
    Security meta-information of a message;
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Set<java.lang.String> fixedroles
      Fixed roles of the sender.
      protected java.util.Set<java.lang.String> mappedroles
      Roles based on mapping of the sender.
      protected java.util.Set<java.lang.String> networks
      Networks containing the sender.
      protected java.lang.String platformname
      Platform name if authenticated.
      protected java.util.Set<java.lang.String> roles
      Union of fixed and mapped roles.
      protected java.util.Set<java.lang.String> sharednetworks
      Networks shared with the sender.
    • Constructor Summary

      Constructors 
      Constructor Description
      SecurityInfo()
      Creates the infos.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAuthenticatedPlatformName()
      Returns the authenticated platform name.
      java.util.Set<java.lang.String> getFixedRoles()
      Gets the fixed roles.
      java.util.Set<java.lang.String> getMappedRoles()
      Gets the mapped roles.
      java.util.Set<java.lang.String> getNetworks()
      Gets the authenticated networks of the sender.
      java.util.Set<java.lang.String> getRoles()
      Gets the roles.
      java.util.Set<java.lang.String> getSharedNetworks()
      Gets the authenticated networks of the sender.
      void setAuthenticatedPlatformName​(java.lang.String platformname)
      Sets the authenticated platform name.
      void setFixedRoles​(java.util.Set<java.lang.String> roles)
      Sets the fixed roles.
      void setMappedRoles​(java.util.Set<java.lang.String> roles)
      Sets the mapped roles.
      void setNetworks​(java.util.Set<java.lang.String> networks)
      Sets the networks.
      void setSharedNetworks​(java.util.Set<java.lang.String> sharednetworks)
      Sets the networks.
      java.lang.String toString()
      Convert to string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • platformname

        protected java.lang.String platformname
        Platform name if authenticated.
      • sharednetworks

        protected java.util.Set<java.lang.String> sharednetworks
        Networks shared with the sender.
      • networks

        protected java.util.Set<java.lang.String> networks
        Networks containing the sender.
      • fixedroles

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

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

        protected volatile java.util.Set<java.lang.String> roles
        Union of fixed and mapped roles.
    • Constructor Detail

      • SecurityInfo

        public SecurityInfo()
        Creates the infos.
    • Method Detail

      • getAuthenticatedPlatformName

        public java.lang.String getAuthenticatedPlatformName()
        Returns the authenticated platform name.
        Specified by:
        getAuthenticatedPlatformName in interface ISecurityInfo
        Returns:
        The authenticated platform name, null if not authenticated.
      • setAuthenticatedPlatformName

        public void setAuthenticatedPlatformName​(java.lang.String platformname)
        Sets the authenticated platform name.
        Parameters:
        platformname - The authenticated platform name, null if not authenticated.
      • getNetworks

        public java.util.Set<java.lang.String> getNetworks()
        Gets the authenticated networks of the sender.
        Specified by:
        getNetworks in interface ISecurityInfo
        Returns:
        The authenticated networks of the sender (sorted).
      • setNetworks

        public void setNetworks​(java.util.Set<java.lang.String> networks)
        Sets the networks.
        Parameters:
        networks - The networks.
      • getSharedNetworks

        public java.util.Set<java.lang.String> getSharedNetworks()
        Gets the authenticated networks of the sender.
        Specified by:
        getSharedNetworks in interface ISecurityInfo
        Returns:
        The authenticated networks of the sender (sorted).
      • setSharedNetworks

        public void setSharedNetworks​(java.util.Set<java.lang.String> sharednetworks)
        Sets the networks.
        Parameters:
        networks - The networks.
      • getRoles

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

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

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

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

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

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