Package jadex.platform.service.security
Class SecurityInfo
- java.lang.Object
- 
- jadex.platform.service.security.SecurityInfo
 
- 
- All Implemented Interfaces:
- ISecurityInfo
 
 public class SecurityInfo extends java.lang.Object implements ISecurityInfo Security meta-information of a message;
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.Set<java.lang.String>fixedrolesFixed roles of the sender.protected java.util.Set<java.lang.String>mappedrolesRoles based on mapping of the sender.protected java.util.Set<java.lang.String>networksNetworks containing the sender.protected java.lang.StringplatformnamePlatform name if authenticated.protected java.util.Set<java.lang.String>rolesUnion of fixed and mapped roles.protected java.util.Set<java.lang.String>sharednetworksNetworks shared with the sender.
 - 
Constructor SummaryConstructors Constructor Description SecurityInfo()Creates the infos.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAuthenticatedPlatformName()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.voidsetAuthenticatedPlatformName(java.lang.String platformname)Sets the authenticated platform name.voidsetFixedRoles(java.util.Set<java.lang.String> roles)Sets the fixed roles.voidsetMappedRoles(java.util.Set<java.lang.String> roles)Sets the mapped roles.voidsetNetworks(java.util.Set<java.lang.String> networks)Sets the networks.voidsetSharedNetworks(java.util.Set<java.lang.String> sharednetworks)Sets the networks.java.lang.StringtoString()Convert to string.
 
- 
- 
- 
Field Detail- 
platformnameprotected java.lang.String platformname Platform name if authenticated.
 - 
sharednetworksprotected java.util.Set<java.lang.String> sharednetworks Networks shared with the sender.
 - 
networksprotected java.util.Set<java.lang.String> networks Networks containing the sender.
 - 
fixedrolesprotected volatile java.util.Set<java.lang.String> fixedroles Fixed roles of the sender.
 - 
mappedrolesprotected volatile java.util.Set<java.lang.String> mappedroles Roles based on mapping of the sender.
 - 
rolesprotected volatile java.util.Set<java.lang.String> roles Union of fixed and mapped roles.
 
- 
 - 
Method Detail- 
getAuthenticatedPlatformNamepublic java.lang.String getAuthenticatedPlatformName() Returns the authenticated platform name.- Specified by:
- getAuthenticatedPlatformNamein interface- ISecurityInfo
- Returns:
- The authenticated platform name, null if not authenticated.
 
 - 
setAuthenticatedPlatformNamepublic void setAuthenticatedPlatformName(java.lang.String platformname) Sets the authenticated platform name.- Parameters:
- platformname- The authenticated platform name, null if not authenticated.
 
 - 
getNetworkspublic java.util.Set<java.lang.String> getNetworks() Gets the authenticated networks of the sender.- Specified by:
- getNetworksin interface- ISecurityInfo
- Returns:
- The authenticated networks of the sender (sorted).
 
 - 
setNetworkspublic void setNetworks(java.util.Set<java.lang.String> networks) Sets the networks.- Parameters:
- networks- The networks.
 
 - 
getSharedNetworkspublic java.util.Set<java.lang.String> getSharedNetworks() Gets the authenticated networks of the sender.- Specified by:
- getSharedNetworksin interface- ISecurityInfo
- Returns:
- The authenticated networks of the sender (sorted).
 
 - 
setSharedNetworkspublic void setSharedNetworks(java.util.Set<java.lang.String> sharednetworks) Sets the networks.- Parameters:
- networks- The networks.
 
 - 
getRolespublic java.util.Set<java.lang.String> getRoles() Gets the roles.- Specified by:
- getRolesin interface- ISecurityInfo
- Returns:
- The roles.
 
 - 
getFixedRolespublic java.util.Set<java.lang.String> getFixedRoles() Gets the fixed roles.- Returns:
- The fixed roles.
 
 - 
getMappedRolespublic java.util.Set<java.lang.String> getMappedRoles() Gets the mapped roles.- Returns:
- The mapped roles.
 
 - 
setFixedRolespublic void setFixedRoles(java.util.Set<java.lang.String> roles) Sets the fixed roles.- Parameters:
- roles- The fixed roles.
 
 - 
setMappedRolespublic void setMappedRoles(java.util.Set<java.lang.String> roles) Sets the mapped roles.- Parameters:
- roles- The mapped roles.
 
 - 
toStringpublic java.lang.String toString() Convert to string.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-