Enable and disabling Java 2 security using scripting
Procedure
- Start wsadmin
- Identify the security configuration object and assign it to the security variable:
Jacl:
set security [$AdminConfig list Security] security = AdminConfig.list('Security') print security
Example output
(cells/mycell|security.xml#Security_1)- Modify the enforceJava2Security attribute to enable or disable Java 2 security. For example:
To enable Java 2 security:
Jacl:
$AdminConfig modify $security {{enforceJava2Security true}} AdminConfig.modify(security, [['enforceJava2Security', 'true']])
To disable Java 2 security:
Jacl:
$AdminConfig modify $security {{enforceJava2Security false}} $AdminConfig save AdminConfig.modify(security, [['enforceJava2Security', 'false']])
- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object