Tabnine Logo
JISession.useSessionSecurity
Code IndexAdd Tabnine to your IDE (free)

How to use
useSessionSecurity
method
in
org.jinterop.dcom.core.JISession

Best Java code snippets using org.jinterop.dcom.core.JISession.useSessionSecurity (Showing top 20 results out of 315)

origin: stackoverflow.com

try {
   args[0] = "x.y.z.w";
   String domain       = "";//i am using it as blank
   String username     = "username";//user who logs in to the system as admin
   String password     = "password";// used by admin to login to windows pc
   JISystem.getLogger().setLevel(Level.FINEST);
   JISystem.setInBuiltLogHandler(false);
   JISystem.setAutoRegisteration(true);
   JISession session3 = JISession.createSession(domain,username,password);
   session3.useSessionSecurity(true);
   System.out.println(" session3 "+session3);
 }catch(Exception e){
   e.printStackTrace();
 }
origin: org.kohsuke.jinterop/j-interop

public MSExcel2_Test(String address, String[] args) throws JIException, UnknownHostException
{
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  comServer = new JIComServer(JIProgId.valueOf("Excel.Application"),address,session);
}
origin: org.jinterop/j-interop

public MSWord(String address, String[] args) throws JIException, UnknownHostException {
  JISession session = JISession.createSession(args[1], args[2], args[3]);
  session.useSessionSecurity(true);
  comStub = new JIComServer(JIProgId.valueOf("Word.Application"), address, session);
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public MSWord ( final String address, final String[] args ) throws JIException, UnknownHostException
{
  final JISession session = JISession.createSession ( args[1], args[2], args[3] );
  session.useSessionSecurity ( true );
  this.comStub = new JIComServer ( JIProgId.valueOf ( "Word.Application" ), address, session );
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public MSExcel2_Test ( final String address, final String[] args ) throws JIException, UnknownHostException
{
  this.session = JISession.createSession ( args[1], args[2], args[3] );
  this.session.useSessionSecurity ( true );
  this.comServer = new JIComServer ( JIProgId.valueOf ( "Excel.Application" ), address, this.session );
}
origin: org.jinterop/j-interop

public MSExcel2_Test(String address, String[] args) throws JIException, UnknownHostException
{
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  comServer = new JIComServer(JIProgId.valueOf("Excel.Application"),address,session);
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public MSTypeLibraryBrowser2 ( final String address, final String args[] ) throws JIException, UnknownHostException
{
  final JISession session = JISession.createSession ( args[1], args[2], args[3] );
  session.useSessionSecurity ( true );
  this.comServer = new JIComServer ( JIProgId.valueOf ( args[4] ), address, session );
}
origin: org.kohsuke.jinterop/j-interop

public MSWord(String address, String[] args) throws JIException, UnknownHostException {
  JISession session = JISession.createSession(args[1], args[2], args[3]);
  session.useSessionSecurity(true);
  comStub = new JIComServer(JIProgId.valueOf("Word.Application"), address, session);
}
origin: org.jinterop/j-interop

public MSExcel2(String address, String[] args) throws JIException, UnknownHostException
{
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  comServer = new JIComServer(JIProgId.valueOf("Excel.Application"),address,session);
}
origin: org.kohsuke.jinterop/j-interop

public MSTypeLibraryBrowser2(String address, String args[]) throws JIException, UnknownHostException
{
  JISession session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  comServer = new JIComServer(JIProgId.valueOf(args[4]),address,session);
}
origin: org.jinterop/j-interop

public MSTypeLibraryBrowser2(String address, String args[]) throws JIException, UnknownHostException
{
  JISession session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  comServer = new JIComServer(JIProgId.valueOf(args[4]),address,session);
}
origin: org.jinterop/j-interop

MSSysInfo(String[] args) throws JIException, UnknownHostException
{
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  JIComServer comServer = new JIComServer(JIProgId.valueOf("SYSINFO.SysInfo"),args[0],session);
  sysInfoServer = comServer.createInstance();
  sysInfoObject = (IJIComObject)sysInfoServer.queryInterface("6FBA474C-43AC-11CE-9A0E-00AA0062BB4C");
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(sysInfoObject.queryInterface(IJIDispatch.IID));
}
void displayValues() throws JIException
origin: org.kohsuke.jinterop/j-interop

MSSysInfo(String[] args) throws JIException, UnknownHostException
{
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  JIComServer comServer = new JIComServer(JIProgId.valueOf("SYSINFO.SysInfo"),args[0],session);
  sysInfoServer = comServer.createInstance();
  sysInfoObject = (IJIComObject)sysInfoServer.queryInterface("6FBA474C-43AC-11CE-9A0E-00AA0062BB4C");
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(sysInfoObject.queryInterface(IJIDispatch.IID));
}
void displayValues() throws JIException
origin: org.openscada.jinterop/org.openscada.jinterop.core

MSSysInfo ( final String[] args ) throws JIException, UnknownHostException
{
  this.session = JISession.createSession ( args[1], args[2], args[3] );
  this.session.useSessionSecurity ( true );
  final JIComServer comServer = new JIComServer ( JIProgId.valueOf ( "SYSINFO.SysInfo" ), args[0], this.session );
  this.sysInfoServer = comServer.createInstance ();
  this.sysInfoObject = this.sysInfoServer.queryInterface ( "6FBA474C-43AC-11CE-9A0E-00AA0062BB4C" );
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.sysInfoObject.queryInterface ( IJIDispatch.IID ) );
}
origin: org.kohsuke.jinterop/j-interop

public MSWMI(String address, String[] args) throws JIException, UnknownHostException
{
  this.address = address;
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  session.setGlobalSocketTimeout(5000);
  comStub = new JIComServer(JIProgId.valueOf("WbemScripting.SWbemLocator"),address,session);
  IJIComObject unknown = comStub.createInstance();
  comObject = (IJIComObject)unknown.queryInterface("76A6415B-CB41-11d1-8B02-00600806D9B6");//ISWbemLocator
  //This will obtain the dispatch interface
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(comObject.queryInterface(IJIDispatch.IID));
}
origin: org.jinterop/j-interop

public MSWMI(String address, String[] args) throws JIException, UnknownHostException
{
  this.address = address;
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  session.setGlobalSocketTimeout(5000);
  comStub = new JIComServer(JIProgId.valueOf("WbemScripting.SWbemLocator"),address,session);
  IJIComObject unknown = comStub.createInstance();
  comObject = (IJIComObject)unknown.queryInterface("76A6415B-CB41-11d1-8B02-00600806D9B6");//ISWbemLocator
  //This will obtain the dispatch interface
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(comObject.queryInterface(IJIDispatch.IID));
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public MSWMI ( final String address, final String[] args ) throws JIException, UnknownHostException
{
  this.address = address;
  this.session = JISession.createSession ( args[1], args[2], args[3] );
  this.session.useSessionSecurity ( true );
  this.session.setGlobalSocketTimeout ( 5000 );
  this.comStub = new JIComServer ( JIProgId.valueOf ( "WbemScripting.SWbemLocator" ), address, this.session );
  final IJIComObject unknown = this.comStub.createInstance ();
  this.comObject = unknown.queryInterface ( "76A6415B-CB41-11d1-8B02-00600806D9B6" );//ISWbemLocator
  //This will obtain the dispatch interface
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.comObject.queryInterface ( IJIDispatch.IID ) );
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public MSInternetExplorer ( final String address, final String[] args ) throws JIException, UnknownHostException
{
  JISystem.mapHostNametoIP ( "locutus", "192.168.0.130" );
  this.session = JISession.createSession ( args[1], args[2], args[3] );
  this.session.useSessionSecurity ( true );
  this.comServer = new JIComServer ( JIProgId.valueOf ( "InternetExplorer.Application" ), address, this.session );
  this.ieObject = this.comServer.createInstance ();
  final IJIComObject ieObjectWebBrowser2 = this.ieObject.queryInterface ( "D30C1661-CDAF-11D0-8A3E-00C04FC9E26E" );
  this.ieObjectDispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.ieObject.queryInterface ( IJIDispatch.IID ) );
}
origin: org.jinterop/j-interop

public MSInternetExplorer(String address, String[] args) throws JIException, UnknownHostException
{
  JISystem.mapHostNametoIP("locutus", "192.168.0.130");
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  comServer = new JIComServer(JIProgId.valueOf("InternetExplorer.Application"),address,session);
  ieObject = comServer.createInstance();
  IJIComObject ieObjectWebBrowser2 = (IJIComObject)ieObject.queryInterface("D30C1661-CDAF-11D0-8A3E-00C04FC9E26E");
  ieObjectDispatch = (IJIDispatch)JIObjectFactory.narrowObject((IJIComObject)ieObject.queryInterface(IJIDispatch.IID));
}
origin: org.kohsuke.jinterop/j-interop

public MSInternetExplorer(String address, String[] args) throws JIException, UnknownHostException
{
  JISystem.mapHostNametoIP("locutus", "192.168.0.130");
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  comServer = new JIComServer(JIProgId.valueOf("InternetExplorer.Application"),address,session);
  ieObject = comServer.createInstance();
  IJIComObject ieObjectWebBrowser2 = (IJIComObject)ieObject.queryInterface("D30C1661-CDAF-11D0-8A3E-00C04FC9E26E");
  ieObjectDispatch = (IJIDispatch)JIObjectFactory.narrowObject((IJIComObject)ieObject.queryInterface(IJIDispatch.IID));
}
org.jinterop.dcom.coreJISessionuseSessionSecurity

Javadoc

Sets the use of NTLM2 Session Security. Framework will use NTLM Packet Level Privacy and Sign\Seal all packets. Once the JIComServer is bound to this session (using any of the JIComServer constructors) the use of session security cannot be enabled or disabled.

Please note that session security can come at any available level of authentication (LM\NTLM\LMv2\NTLMv2). The framework currently only supports sign and seal at NTLMv1 level.

Whether to use NTLM1 or not is dictated by this field in the Windows Registry.

HKLM\System\CurrentControlSet\Control\Lsa\LmCompatibilityLevel

This article on MSDN talks more about it http://support.microsoft.com/default.aspx?scid=KB;en-us;239869

Popular methods of JISession

  • createSession
    Creates a new session using credentials of the sessionparameter. The new session is not yet attached
  • setGlobalSocketTimeout
    Sets the timeout for all sockets opened to (not fro) the COM server for this session. Default value
  • destroySession
    Used to destroy the session, this release all references of the COM server and it's interfaces. It s
  • <init>
  • addToSession
  • debug_addIpids
  • debug_delIpids
  • equals
  • getDomain
    Gets the domain of the user associated with this session.
  • getGlobalSocketTimeout
    Returns the global timeout applied to all sockets opened from this session to COM Server.
  • getLocalHost
  • getLocalhostAddressAsIPString
  • getLocalHost,
  • getLocalhostAddressAsIPString,
  • getLocalhostAddressAsIPbytes,
  • getLocalhostCanonicalAddressAsString,
  • getPassword,
  • getSessionIdentifier,
  • getStub,
  • getTargetServer,
  • getUnreferencedHandler

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now