|
Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.6) Part Number E13945-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityConfigurationMBean
Provides domain-wide security configuration information.
This is a type-safe interface for a
WebLogic Server MBean, which you can import into your client
classes and access through
weblogic.management.MBeanHome
. As of 9.0, the
MBeanHome
interface and all type-safe interfaces for
WebLogic Server MBeans are deprecated. Instead, client classes that
interact with WebLogic Server MBeans should use standard JMX design
patterns in which clients use the
javax.management.MBeanServerConnection
interface to
discover MBeans, attributes, and attribute types at runtime.
Field Summary |
---|
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
DEFAULT_EMPTY_BYTE_ARRAY |
Method Summary | |
---|---|
RealmMBean |
createRealm()
Creates a realm. |
RealmMBean |
createRealm(String name)
Creates a realm. |
void |
destroyRealm(RealmMBean realm)
Destroys a realm. |
RealmMBean |
findDefaultRealm()
Deprecated. 9.0.0.0 Replaced by SecurityConfigurationMBean.getDefaultRealm() |
RealmMBean |
findRealm(String realmDisplayName)
Deprecated. 9.0.0.0 Replaced by SecurityConfigurationMBean.lookupRealm(java.lang.String) |
RealmMBean[] |
findRealms()
Deprecated. 9.0.0.0 Replaced by SecurityConfigurationMBean.getRealms() |
byte[] |
generateCredential()
Generates a new encrypted byte array which can be use when calling #setCredentialEncrypted |
CertRevocMBean |
getCertRevoc()
Determines the domain's X509 certificate revocation checking configuration. |
boolean |
getCompatibilityConnectionFiltersEnabled()
Specifies whether this WebLogic Server domain enables compatiblity with previous connection filters. |
String |
getConnectionFilter()
The name of the Java class that implements a connection filter (that is, the weblogic.security.net.ConnectionFilter interface). |
String[] |
getConnectionFilterRules()
The rules used by any connection filter that implements the ConnectionFilterRulesListener interface. |
boolean |
getConnectionLoggerEnabled()
Specifies whether this WebLogic Server domain should log accepted connections. |
RealmMBean |
getDefaultRealm()
Returns the default security realm or null if no realm has been selected as the default security realm. |
boolean |
getDowngradeUntrustedPrincipals()
Whether or not to downgrade to anonymous principals that cannot be verified. |
boolean |
getEnforceStrictURLPattern()
Whether or not the system should enforce strict URL pattern or not. |
boolean |
getEnforceValidBasicAuthCredentials()
Whether or not the system should allow requests with invalid Basic Authentication credentials to access unsecure resources. |
String[] |
getExcludedDomainNames()
Specifies a list of remote domains for which cross-domain check should not be applied. |
String |
getNodeManagerPassword()
The password that the Administration Server uses to communicate with Node Manager when starting, stopping, or restarting Managed Servers. |
byte[] |
getNodeManagerPasswordEncrypted()
The password that the Administration Server passes to a Node Manager when it instructs the Node Manager to start, stop, or restart Managed Servers. |
String |
getNodeManagerUsername()
The user name that the Administration Server uses to communicate with Node Manager when starting, stopping, or restarting Managed Servers. |
RealmMBean[] |
getRealms()
Returns all the realms in the domain. |
String |
getWebAppFilesCaseInsensitive()
This property defines the case sensitive URL-pattern matching behavior for security constraints, servlets, filters, virtual-hosts, and so on, in the Web application container and external security policies. |
boolean |
isAnonymousAdminLookupEnabled()
Returns true if anonymous JNDI access for Admin MBean home is permitted. |
boolean |
isClearTextCredentialAccessEnabled()
Returns true if allow access to credential in clear text. |
boolean |
isConsoleFullDelegationEnabled()
Indicates whether the console is enabled for fully delegate authorization. |
boolean |
isCrossDomainSecurityEnabled()
Indicates whether or not cross-domain security is enabled |
boolean |
isPrincipalEqualsCaseInsensitive()
Specifies whether the WebLogic Server principal name is compared using a case insensitive match when the equals method for the principal object is performed. |
boolean |
isPrincipalEqualsCompareDnAndGuid()
Specifies whether the GUID and DN data in a WebLogic Server principal object are used when the equals method of that object is invoked. |
RealmMBean |
lookupRealm(String name)
Finds a realm given it's name. |
void |
setAnonymousAdminLookupEnabled(boolean permit)
Permits anonymous JNDI access to get the Admin MBean home. |
void |
setClearTextCredentialAccessEnabled(boolean enabled)
Allow access to clear-text password. |
void |
setCompatibilityConnectionFiltersEnabled(boolean compatibility)
|
void |
setConnectionFilter(String filter)
|
void |
setConnectionFilterRules(String[] filterList)
|
void |
setConnectionLoggerEnabled(boolean logging)
|
void |
setConsoleFullDelegationEnabled(boolean enabled)
Enables the console to operate with fully delegate authorization. |
void |
setCredential(String credential)
As of 8.1 sp4, this method does the following: |
void |
setCredentialEncrypted(byte[] bytes)
Encrypts and sets the value of the CredentialEncrypted attribute. |
void |
setCrossDomainSecurityEnabled(boolean enabled)
Turns on/off the cross-domain security. |
void |
setDefaultRealm(RealmMBean defaultRealm)
Sets the default security realm. |
void |
setDowngradeUntrustedPrincipals(boolean downgrade)
|
void |
setEnforceStrictURLPattern(boolean enforceStrictURLPattern)
|
void |
setEnforceValidBasicAuthCredentials(boolean allow)
|
void |
setExcludedDomainNames(String[] remoteDomains)
Specifies a list of remote domains for which cross-domain check should not be applied. |
void |
setNodeManagerPassword(String password)
Sets the value of the NodeManagerPassword attribute. |
void |
setNodeManagerPasswordEncrypted(byte[] bytes)
Sets the value of the NodeManagerPassword attribute. |
void |
setNodeManagerUsername(String username)
Sets the node manager username for the domain. |
void |
setPrincipalEqualsCaseInsensitive(boolean principalEqualsCaseInsensitive)
Sets the value of the PrincipalEqualsCaseInsensitive attribute. |
void |
setPrincipalEqualsCompareDnAndGuid(boolean principalEqualsCompareDnAndGuid)
Sets the value of the UseGUIDandDNinEqual attribute. |
void |
setWebAppFilesCaseInsensitive(String caseInsensitive)
Sets the value for the WebAppFilesCaseInsensitive. |
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean |
---|
freezeCurrentValue, getName, getNotes, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet |
Method Detail |
---|
RealmMBean createRealm(String name) throws JMException
name
- - The name of this realm, for example, myrealm
JMException
RealmMBean createRealm() throws JMException
name
- a String containing the realm's name. This name must be unique
among all realms in the domain. If the name can be converted to a JMX object name,
then it is used as the provider's JMX object name. The encouraged convention is:
"Security:Name=realmDisplayName". For example:
"Security:Name=myrealm".displayName
- a String containing the realm's display name (ie. the name
that will be displayed in the console).
JMException
void destroyRealm(RealmMBean realm)
RealmMBean[] getRealms()
RealmMBean lookupRealm(String name)
RealmMBean[] findRealms()
SecurityConfigurationMBean.getRealms()
RealmMBean findDefaultRealm()
SecurityConfigurationMBean.getDefaultRealm()
RealmMBean findRealm(String realmDisplayName)
SecurityConfigurationMBean.lookupRealm(java.lang.String)
realmDisplayName
- A String containing the realm's display name.RealmMBean getDefaultRealm()
void setDefaultRealm(RealmMBean defaultRealm) throws InvalidAttributeValueException
realm
- The new default realm.
Use null to specify that there is no default realm.
InvalidAttributeValueException
boolean isAnonymousAdminLookupEnabled()
Returns true if anonymous JNDI access for Admin MBean home is
permitted. This is overridden by the Java property
-Dweblogic.management.anonymousAdminLookupEnabled
.
void setAnonymousAdminLookupEnabled(boolean permit)
Permits anonymous JNDI access to get the Admin MBean home.
permit
- The new value.SecurityConfigurationMBean.isAnonymousAdminLookupEnabled()
boolean isClearTextCredentialAccessEnabled()
Returns true if allow access to credential in clear text.
This can be overridden by the system property
-Dweblogic.management.clearTextCredentialAccessEnabled
void setClearTextCredentialAccessEnabled(boolean enabled)
Allow access to clear-text password.
enabled
- The new value.SecurityConfigurationMBean.isClearTextCredentialAccessEnabled()
byte[] generateCredential()
Generates a new encrypted byte array which can be use when calling #setCredentialEncrypted
void setCredential(String credential) throws InvalidAttributeValueException
As of 8.1 sp4, this method does the following:
CredentialEncrypted
attribute to the
encrypted parameter value.
credential
- The new credential value
InvalidAttributeValueException
SecurityConfigurationMBean.getCredential()
,
SecurityConfigurationMBean.setCredentialEncrypted(byte[] bytes)
void setCredentialEncrypted(byte[] bytes) throws InvalidAttributeValueException
Encrypts and sets the value of the CredentialEncrypted attribute.
bytes
- The new credential value as a byte array.
InvalidAttributeValueException
SecurityConfigurationMBean.getCredentialEncrypted()
String getWebAppFilesCaseInsensitive()
This property defines the case sensitive URL-pattern matching
behavior for security constraints, servlets, filters, virtual-hosts,
and so on, in the Web application container and external security policies.
Note: This is a Windows-only flag that is provided for backward
compatibility when upgrading from pre-9.0 versions of WebLogic Server.
On Unix platforms, setting this value to true
causes
undesired behavior and is not supported.
When the value is set to os
, the pattern matching will be case-
sensitive on all platforms except the Windows file system.
Note that on non-Windows file systems, WebLogic Server does not enforce
case sensitivity and relies on the file system for optimization.
As a result, if you have a Windows Samba mount from Unix or Mac OS
that has been installed in case-insensitive mode, there is a chance
of a security risk. If so, specify case-insensitive lookups by setting
this attribute to true
.
Note also that this property is used to preserve backward compatibility on
Windows file systems only. In prior releases, WebLogic Server was case-
insensitive on Windows. As of WebLogic Server 9.0, URL-pattern
matching is strictly enforced.
During the upgrade of older domains, the value of this parameter
is explicitly set to os
by the upgrade plug-in to
preserve backward compatibility.
void setWebAppFilesCaseInsensitive(String caseInsensitive) throws InvalidAttributeValueException
Sets the value for the WebAppFilesCaseInsensitive.
caseInsensitive
- The new value caseInsensitive.
InvalidAttributeValueException
SecurityConfigurationMBean.getWebAppFilesCaseInsensitive()
String getConnectionFilter()
The name of the Java class that implements a connection filter (that is, the weblogic.security.net.ConnectionFilter interface). If no class name is specified, no connection filter will be used.
This attribute replaces the deprecated ConnectionFilter attribute on the SecurityMBean.
void setConnectionFilter(String filter) throws InvalidAttributeValueException
InvalidAttributeValueException
String[] getConnectionFilterRules()
The rules used by any connection filter that implements the ConnectionFilterRulesListener interface. When using the default implementation and when no rules are specified, all connections are accepted. The default implementation rules are in the format: target localAddress localPort action protocols.
This attribute replaces the deprecated ConnectionFilterRules attribute on the SecurityMBean.
void setConnectionFilterRules(String[] filterList)
boolean getConnectionLoggerEnabled()
Specifies whether this WebLogic Server domain should log accepted connections.
This attribute can be used by a system administrator to dynamically check the incoming connections in the log file to determine if filtering needs to be performed.
This attribute replaces the deprecated ConnectionLoggerEnabled attribute on the SecurityMBean.
void setConnectionLoggerEnabled(boolean logging) throws InvalidAttributeValueException
InvalidAttributeValueException
boolean getCompatibilityConnectionFiltersEnabled()
Specifies whether this WebLogic Server domain enables compatiblity with previous connection filters.
This attribute changes the protocols names used when filtering needs to be performed.
void setCompatibilityConnectionFiltersEnabled(boolean compatibility) throws InvalidAttributeValueException
InvalidAttributeValueException
String getNodeManagerUsername()
The user name that the Administration Server uses to communicate with Node Manager when starting, stopping, or restarting Managed Servers.
void setNodeManagerUsername(String username)
username
- the new username valueSecurityConfigurationMBean.getNodeManagerUsername()
String getNodeManagerPassword()
The password that the Administration Server uses to communicate with Node Manager when starting, stopping, or restarting Managed Servers.
When you get the value of this attribute, WebLogic Server does the following:
NodeManagerPasswordEncrypted
attribute.
When you set the value of this attribute, WebLogic Server does the following:
NodeManagerPasswordEncrypted
attribute to the
encrypted value.Using this attribute (NodeManagerPassword
) is a potential security risk because
the String object (which contains the unencrypted password) remains in
the JVM's memory until garbage collection removes it and the memory is reallocated. Depending on how
memory is allocated in the JVM, a significant amount of time could pass
before this unencrypted data is removed from memory.
Instead of using this attribute, you should use NodeManagerPasswordEncrypted
.
SecurityConfigurationMBean.getNodeManagerPasswordEncrypted()
void setNodeManagerPassword(String password)
password
- the new password valueSecurityConfigurationMBean.getNodeManagerPassword()
,
SecurityConfigurationMBean.setNodeManagerPasswordEncrypted(byte[])
byte[] getNodeManagerPasswordEncrypted()
The password that the Administration Server passes to a Node Manager when it instructs the Node Manager to start, stop, or restart Managed Servers.
To set this attribute, use weblogic.management.EncryptionHelper.encrypt()
to encrypt the value. Then set this attribute to the output of the encrypt() method.
To compare a password that a user enters with the encrypted
value of this attribute, go to the same WebLogic Server instance
that you used to set and encrypt this attribute
and use weblogic.management.EncryptionHelper.encrypt()
to encrypt the user-supplied password. Then compare the encrypted values.
void setNodeManagerPasswordEncrypted(byte[] bytes)
password
- the new password value#getNodeManagerPasswordEncrytped()
boolean isPrincipalEqualsCaseInsensitive()
Specifies whether the WebLogic Server principal name is compared using a case insensitive match when the equals method for the principal object is performed.
If this attribute is enabled, matches are case insensitive.
Note: Note that principal comparison is not used by the WebLogic Security Service to determine access to protected resources. This attribute is intended for use with JAAS authorization, which may require case insensitive principal matching behavior.
void setPrincipalEqualsCaseInsensitive(boolean principalEqualsCaseInsensitive)
caseInsensitivePrincipalMatch
- #isCaseInsensitivePrincipalMatch()
boolean isPrincipalEqualsCompareDnAndGuid()
Specifies whether the GUID and DN data in a WebLogic Server principal object are used when the equals method of that object is invoked.
If enabled, the GUID and DN data (if included among the attributes in a WebLogic Server principal object) and the principal name are compared when this method is invoked.
void setPrincipalEqualsCompareDnAndGuid(boolean principalEqualsCompareDnAndGuid)
useGUIDandDNinPrincipalEqual
- #isUseGUIDandDNinPrincipalEqual
boolean getDowngradeUntrustedPrincipals()
void setDowngradeUntrustedPrincipals(boolean downgrade)
downgrade
- the new DowngradeUntrustedPrincipals valueSecurityConfigurationMBean.getDowngradeUntrustedPrincipals()
boolean getEnforceStrictURLPattern()
void setEnforceStrictURLPattern(boolean enforceStrictURLPattern)
enforceStrictURLPattern
- the new EnforceStrictURLPattern valueSecurityConfigurationMBean.getEnforceStrictURLPattern()
boolean getEnforceValidBasicAuthCredentials()
void setEnforceValidBasicAuthCredentials(boolean allow)
allow
- the new EnforceValidBasicAuthCredentials valueSecurityConfigurationMBean.getEnforceValidBasicAuthCredentials()
boolean isConsoleFullDelegationEnabled()
Indicates whether the console is enabled for fully delegate authorization.
void setConsoleFullDelegationEnabled(boolean enabled)
Enables the console to operate with fully delegate authorization.
enabled
- the new console full delegation valueSecurityConfigurationMBean.isConsoleFullDelegationEnabled()
String[] getExcludedDomainNames()
Specifies a list of remote domains for which cross-domain check should not be applied.
void setExcludedDomainNames(String[] remoteDomains)
Specifies a list of remote domains for which cross-domain check should not be applied. Sets the list of remote domain names that are to be excluded from the cross-domain checks.
Array
- of Strings of all the domain names to be excluded.boolean isCrossDomainSecurityEnabled()
Indicates whether or not cross-domain security is enabled
void setCrossDomainSecurityEnabled(boolean enabled)
Turns on/off the cross-domain security.
boolean
- value to indicate whether or not cross domain security
is enabled via the use of credential mapper.CertRevocMBean getCertRevoc()
A CertRevocMBean is always associated with a domain's security configuration and cannot be changed, although CertRevocMBean attributes may be changed as documented.
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server MBean Javadoc 11g Release 1 (10.3.6) Part Number E13945-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |