public final class XMLSecurityManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XMLSecurityManager.Limit
Limits managed by the security manager
|
static class |
XMLSecurityManager.NameMap
Map old property names with the new ones
|
static class |
XMLSecurityManager.State
States of the settings of a property, in the order: default value, value
set by FEATURE_SECURE_PROCESSING, jaxp.properties file, jaxp system
properties, and jaxp api properties
|
| Constructor and Description |
|---|
XMLSecurityManager()
Default constructor.
|
XMLSecurityManager(boolean secureProcessing)
Instantiate Security Manager in accordance with the status of
secure processing
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex(String propertyName)
Get the index by property name
|
int |
getLimit(XMLSecurityManager.Limit limit)
Return the value of the specified property
|
String |
getLimitAsString(String propertyName)
Return the value of the specified property.
|
int |
getLimitByIndex(int index)
Return the value of a property by its ordinal
|
String |
getLimitValueAsString(XMLSecurityManager.Limit limit)
Return the value of a property by its ordinal
|
String |
getLimitValueByIndex(int index)
Return the value of a property by its index
|
XMLSecurityManager.State |
getState(XMLSecurityManager.Limit limit)
Return the state of the limit property
|
String |
getStateLiteral(XMLSecurityManager.Limit limit)
Return the state of the limit property
|
boolean |
isSet(int index)
Indicate if a property is set explicitly
|
boolean |
printEntityCountInfo() |
void |
setLimit(int index,
XMLSecurityManager.State state,
int value)
Set the value of a property by its index
|
void |
setLimit(int index,
XMLSecurityManager.State state,
Object value)
Set the value of a property by its index
|
boolean |
setLimit(String propertyName,
XMLSecurityManager.State state,
Object value)
Set limit by property name and state
|
void |
setLimit(XMLSecurityManager.Limit limit,
XMLSecurityManager.State state,
int value)
Set the value for a specific limit.
|
void |
setSecureProcessing(boolean secure)
Setting FEATURE_SECURE_PROCESSING explicitly
|
public XMLSecurityManager()
public XMLSecurityManager(boolean secureProcessing)
secureProcessing - public void setSecureProcessing(boolean secure)
public boolean setLimit(String propertyName, XMLSecurityManager.State state, Object value)
propertyName - property namestate - the state of the propertyvalue - the value of the propertypublic void setLimit(XMLSecurityManager.Limit limit, XMLSecurityManager.State state, int value)
limit - the limitstate - the state of the propertyvalue - the value of the propertypublic void setLimit(int index,
XMLSecurityManager.State state,
Object value)
index - the index of the propertystate - the state of the propertyvalue - the value of the propertypublic void setLimit(int index,
XMLSecurityManager.State state,
int value)
index - the index of the propertystate - the state of the propertyvalue - the value of the propertypublic String getLimitAsString(String propertyName)
propertyName - the property namepublic String getLimitValueAsString(XMLSecurityManager.Limit limit)
limit - the propertypublic int getLimit(XMLSecurityManager.Limit limit)
limit - the propertypublic int getLimitByIndex(int index)
index - the index of a propertypublic String getLimitValueByIndex(int index)
index - the index of a propertypublic XMLSecurityManager.State getState(XMLSecurityManager.Limit limit)
limit - the limitpublic String getStateLiteral(XMLSecurityManager.Limit limit)
limit - the limitpublic int getIndex(String propertyName)
propertyName - property namepublic boolean isSet(int index)
index - public boolean printEntityCountInfo()
Copyright © 2018–2021 mhoffrogge. All rights reserved.