public class AdminConfigProtection extends Object
Constructor and Description |
---|
AdminConfigProtection()
Create a normal item for security check.
|
AdminConfigProtection(String data)
Creates a protection from a string in the INI file.
|
AdminConfigProtection(String[] data)
Creates a protection definition from a string array from a list box.
|
AdminConfigProtection(String name,
String realm,
boolean doAuthenticate,
boolean allowBasic,
int sslRequired,
HashSet<String> groups)
Creates a resource from a string in the INI file that was previously in
the resource definition.
|
AdminConfigProtection(VirtualPanel vp)
Creates a protection resource from a panel.
|
Modifier and Type | Method and Description |
---|---|
static String |
checkOwnerSecurityGranted(AdminConfigProtection owner,
AdminConfigProtection item)
Checks two resources, an owner and a new item.
|
String |
checkSecurityGranted(AdminConfigProtection item)
Checks two resources, an owner and a new item.
|
String |
getListBoxString()
Gets the listbox string for this resource.
|
String |
getName()
Gets the name of this access control.
|
String |
getProtectionID()
Gets the protection ID.
|
String |
getRealm()
Gets the realm string of this resource.
|
AdminConfigSecureLogin |
getSecureLoginProfile()
Gets the secure login profile instance for this access control.
|
String |
getSecureLoginProfileName()
Gets the SecureLogin profile name.
|
AdminConfigUser |
getUserDefinition(String userID)
Gets a user configuration definition defined as member of a group for this protection.
|
boolean |
hasDomain(String name)
Checks if a domain ID is used by this protection definition/access control.
|
boolean |
hasGroups()
Checks if this protection has groups assigned to it.
|
static boolean |
hasNoProtection(String realm,
boolean doAuthenticate,
boolean allowBasic,
int sslRequired,
HashSet<String> groups)
Checks if this protection has no migration protection.
|
boolean |
isAuthenticationRequired()
Checks if authentication is required.
|
boolean |
isBasicAllowed()
Checks if Basic authentication is allowed.
|
boolean |
isClientCertificatePresentOnServerRequired()
Checks if client certificate is required for SSL.
|
boolean |
isClientCertificateRequired()
Checks if client certificate is required for SSL.
|
boolean |
isDomainAddressAllowed(SocketNameInterface sni)
Checks if a connection is allowed or denied depending on the domain specification.
|
boolean |
isMigrationProtection(String realm,
boolean doAuthenticate,
boolean allowBasic,
int sslRequired,
HashSet<String> groups)
Checks if this protection matches a migration protection in order not to duplicate them.
|
boolean |
isSSLRequired()
Checks if SSL is required.
|
boolean |
isStrongEncryptionRequired()
Checks if strong SSL encryption is required.
|
static void |
performListSelectionChange(VirtualPanel vp,
VirtualCListBox list,
int line,
boolean hasSelection,
Hashtable<String,Integer> groups,
Hashtable<String,Integer> domains)
Performs a list selection change in the resource definition panel.
|
void |
resolveDomainReferences(HashMap<String,AdminConfigDomain> domains)
Resolves all references to domains.
|
void |
setItem(IniFile ini)
Sets the item in the ini file.
|
public AdminConfigProtection(VirtualPanel vp)
public AdminConfigProtection(String[] data) throws IOException
IOException
- when the data doesn't have the correct format.public AdminConfigProtection(String data) throws IOException
IOException
- when the data doesn't have the correct format.public AdminConfigProtection(String name, String realm, boolean doAuthenticate, boolean allowBasic, int sslRequired, HashSet<String> groups)
public AdminConfigProtection()
public static String checkOwnerSecurityGranted(AdminConfigProtection owner, AdminConfigProtection item)
public String getName()
public static boolean hasNoProtection(String realm, boolean doAuthenticate, boolean allowBasic, int sslRequired, HashSet<String> groups)
public boolean isMigrationProtection(String realm, boolean doAuthenticate, boolean allowBasic, int sslRequired, HashSet<String> groups)
public void resolveDomainReferences(HashMap<String,AdminConfigDomain> domains)
public static void performListSelectionChange(VirtualPanel vp, VirtualCListBox list, int line, boolean hasSelection, Hashtable<String,Integer> groups, Hashtable<String,Integer> domains)
public boolean isSSLRequired()
public boolean isStrongEncryptionRequired()
public boolean isAuthenticationRequired()
public boolean isBasicAllowed()
public boolean hasGroups()
public AdminConfigUser getUserDefinition(String userID)
public String checkSecurityGranted(AdminConfigProtection item)
public String getListBoxString()
public String getProtectionID()
public String getRealm()
public boolean hasDomain(String name)
public boolean isDomainAddressAllowed(SocketNameInterface sni)
public boolean isClientCertificateRequired()
public boolean isClientCertificatePresentOnServerRequired()
public String getSecureLoginProfileName()
public AdminConfigSecureLogin getSecureLoginProfile() throws Exception
Exception
- if the secure login profile cannot be found.public void setItem(IniFile ini)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.