Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


oracle.security.jps.config.jaxb
Class JpsConfigSerializer

java.lang.Object
  extended by oracle.security.jps.config.jaxb.JpsConfigSerializer


public class JpsConfigSerializer
extends java.lang.Object

Serializer for marshalling and unmarshalling JPS jaxb objects


Constructor Summary
JpsConfigSerializer()
          Contsturctor

 

Method Summary
static void main(java.lang.String[] args)
           
 org.w3c.dom.Element marshall(java.lang.Object root)
          } Marshall a JpsConfig object to generate a DOM element
 void marshall(java.lang.Object root, java.io.OutputStream os)
          Marshall a JpsConfig object to generate a DOM element and write out to supplied output stream
 void marshall(java.lang.Object root, java.lang.String fname)
          Marshall a JpsConfig object to generate a DOM element and write the DOM element into a file
 void printJpsConfig(oracle.security.jps.config.jaxb.JpsConfig config)
          Log the JPS config (log level FINEST)
 void setValidation(boolean validate)
           
 oracle.security.jps.config.jaxb.JpsConfig unmarshall(org.w3c.dom.Element root)
          Unmarshall the JpsConfig document element to create a JpsConfig object
 oracle.security.jps.config.jaxb.JpsConfig unmarshall(java.io.InputStream is)
          Unmarshall the input stream representing jps-config.xml, to create a JpsConfig object
 oracle.security.jps.config.jaxb.JpsConfig unmarshall(java.lang.String fname)
          Unmarshall the jps-config.xml file to create a JpsConfig object

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

JpsConfigSerializer

public JpsConfigSerializer()
                    throws JpsException
Contsturctor
Throws:
JpsException - if JAXBContext initialization fails

Method Detail

setValidation

public void setValidation(boolean validate)

unmarshall

public oracle.security.jps.config.jaxb.JpsConfig unmarshall(org.w3c.dom.Element root)
                                                     throws JpsException
Unmarshall the JpsConfig document element to create a JpsConfig object
Parameters:
root - JpsConfig element
Returns:
JpsConfig configuration
Throws:
JpsException - if unmrashalling fails

unmarshall

public oracle.security.jps.config.jaxb.JpsConfig unmarshall(java.lang.String fname)
                                                     throws JpsException
Unmarshall the jps-config.xml file to create a JpsConfig object
Parameters:
fname - jps-config.xml file name (absolute path)
Returns:
JpsConfig configuration
Throws:
JpsException - if unmarshalling fails

unmarshall

public oracle.security.jps.config.jaxb.JpsConfig unmarshall(java.io.InputStream is)
                                                     throws JpsException
Unmarshall the input stream representing jps-config.xml, to create a JpsConfig object
Parameters:
is - - is the input stream
Returns:
JpsConfig configuration
Throws:
JpsException - if unmarshalling fails

marshall

public org.w3c.dom.Element marshall(java.lang.Object root)
                             throws JpsException
} Marshall a JpsConfig object to generate a DOM element
Parameters:
root - JpsConfig object
Returns:
jpsConfig DOM element
Throws:
JpsException - if marshalling fails

marshall

public void marshall(java.lang.Object root,
                     java.io.OutputStream os)
              throws JpsException
Marshall a JpsConfig object to generate a DOM element and write out to supplied output stream
Parameters:
root - JspConfig object to be marshalled
os - OutputStream to which the marhalled DOM element will be written
Throws:
JpsException - if marshalling fails

marshall

public void marshall(java.lang.Object root,
                     java.lang.String fname)
              throws JpsException
Marshall a JpsConfig object to generate a DOM element and write the DOM element into a file
Parameters:
root - JspConfig object to be marshalled
fname - Filename where the marhalled DOM element will be written (requires absolute path)
Throws:
JpsException - if marshalling fails

printJpsConfig

public void printJpsConfig(oracle.security.jps.config.jaxb.JpsConfig config)
Log the JPS config (log level FINEST)
Parameters:
config - JpsConfiguration

main

public static void main(java.lang.String[] args)

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 1 (11.1.1)

E22649-02 ESAPI


Copyright © 2011, Oracle. All rights reserved.