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 Summary
Fields 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 Summary
Constructors Constructor Description SecurityInfo()Creates the infos.
-
Method Summary
All 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
-
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.
-
-
Method Detail
-
getAuthenticatedPlatformName
public java.lang.String getAuthenticatedPlatformName()
Returns the authenticated platform name.- Specified by:
getAuthenticatedPlatformNamein interfaceISecurityInfo- 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:
getNetworksin interfaceISecurityInfo- 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:
getSharedNetworksin interfaceISecurityInfo- 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:
getRolesin interfaceISecurityInfo- 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:
toStringin classjava.lang.Object
-
-