|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.impl.config.SecurityConfigurationXmlReader
public class SecurityConfigurationXmlReader
Represents a Parser for reading an XWS-Security configuration and creating an
appropriate XWS-Security configuration object.
The parser expects the root element of an XWS-Security configuration
to be either a xwss:JAXRPCSecurity or a xwss:SecurityConfiguration.
(the XWS-Security configuration schema)| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
SecurityConfigurationXmlReader()
|
|
| Method Summary | |
|---|---|
static ApplicationSecurityConfiguration |
createApplicationSecurityConfiguration(InputStream xmlStream)
read an XWS-Security configuration representing an xwss:JAXRPCSecurity element
and return an ApplicationSecurityConfiguration instance. |
static DeclarativeSecurityConfiguration |
createDeclarativeConfiguration(InputStream xmlStream)
read an XWS-Security configuration representing a xwss:SecurityConfiguration element
and return a DeclarativeSecurityConfiguration instance. |
static ApplicationSecurityConfiguration |
readApplicationSecurityConfigurationString(String sourceXml)
read an XWS-Security configuration String representing an xwss:JAXRPCSecurity element
and return an ApplicationSecurityConfiguration instance. |
static void |
validate(InputStream xmlStream,
PrintStream out)
Parse and validate an XWS-Security configuration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger log
| Constructor Detail |
|---|
public SecurityConfigurationXmlReader()
| Method Detail |
|---|
public static ApplicationSecurityConfiguration readApplicationSecurityConfigurationString(String sourceXml)
throws Exception
xwss:JAXRPCSecurity element
and return an ApplicationSecurityConfiguration instance.
sourceXml - the configuration String
ApplicationSecurityConfiguration corresponding to the configuration
Exception - if there was an error in creating the configuration
public static void validate(InputStream xmlStream,
PrintStream out)
throws Exception
xmlStream - the InputStream representing the configurationout - the PrintStream to which Errors messages should be logged
Exception - if there was an error while validating the configuration
public static DeclarativeSecurityConfiguration createDeclarativeConfiguration(InputStream xmlStream)
throws Exception
xwss:SecurityConfiguration element
and return a DeclarativeSecurityConfiguration instance.
xmlStream - the InputStream for the configuration
DeclarativeSecurityConfiguration corresponding to the configuration
Exception - if there was an error in creating the configuration
public static ApplicationSecurityConfiguration createApplicationSecurityConfiguration(InputStream xmlStream)
throws Exception
xwss:JAXRPCSecurity element
and return an ApplicationSecurityConfiguration instance.
xmlStream - the InputStream for the configuration
ApplicationSecurityConfiguration corresponding to the configuration
Exception - if there was an error in creating the configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||