Tabnine Logo
LsaPolicyHandle.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
jcifs.dcerpc.msrpc.LsaPolicyHandle

Best Java code snippets using jcifs.dcerpc.msrpc.LsaPolicyHandle.close (Showing top 8 results out of 315)

origin: jcifs/jcifs

  static void resolveSids0(String authorityServerName,
        NtlmPasswordAuthentication auth,
        SID[] sids) throws IOException {
    DcerpcHandle handle = null;
    LsaPolicyHandle policyHandle = null;

synchronized (sid_cache) {
    try {
      handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName +
          "[\\PIPE\\lsarpc]", auth);
      String server = authorityServerName;
      int dot = server.indexOf('.');
      if (dot > 0 && Character.isDigit(server.charAt(0)) == false)
        server = server.substring(0, dot);
      policyHandle = new LsaPolicyHandle(handle, "\\\\" + server, 0x00000800);
      SID.resolveSids(handle, policyHandle, sids);
    } finally {
      if (handle != null) {
        if (policyHandle != null) {
          policyHandle.close();
        }
        handle.close();
      }
    }
}
  }
 
origin: org.samba.jcifs/jcifs

static void resolveSids0(String authorityServerName,
      NtlmPasswordAuthentication auth,
      SID[] sids) throws IOException {
  DcerpcHandle handle = null;
  LsaPolicyHandle policyHandle = null;
  try {
    handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName +
        "[\\PIPE\\lsarpc]", auth);
    String server = authorityServerName;
    int dot = server.indexOf('.');
    if (dot > 0 && Character.isDigit(server.charAt(0)) == false)
      server = server.substring(0, dot);
    policyHandle = new LsaPolicyHandle(handle, "\\\\" + server, 0x00000800);
    SID.resolveSids(handle, policyHandle, sids);
  } finally {
    if (handle != null) {
      if (policyHandle != null) {
        policyHandle.close();
      }
      handle.close();
    }
  }
}
origin: com.jaeksoft/jcifs-krb5-jdk7

  static void resolveSids0(String authorityServerName,
        NtlmPasswordAuthentication auth,
        SID[] sids) throws IOException {
    DcerpcHandle handle = null;
    LsaPolicyHandle policyHandle = null;

synchronized (sid_cache) {
    try {
      handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName +
          "[\\PIPE\\lsarpc]", auth);
      String server = authorityServerName;
      int dot = server.indexOf('.');
      if (dot > 0 && Character.isDigit(server.charAt(0)) == false)
        server = server.substring(0, dot);
      policyHandle = new LsaPolicyHandle(handle, "\\\\" + server, 0x00000800);
      SID.resolveSids(handle, policyHandle, sids);
    } finally {
      if (handle != null) {
        if (policyHandle != null) {
          policyHandle.close();
        }
        handle.close();
      }
    }
}
  }
 
origin: kohsuke/jcifs

  static void resolveSids0(String authorityServerName,
        NtlmPasswordAuthentication auth,
        SID[] sids) throws IOException {
    DcerpcHandle handle = null;
    LsaPolicyHandle policyHandle = null;

synchronized (sid_cache) {
    try {
      handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName +
          "[\\PIPE\\lsarpc]", auth);
      String server = authorityServerName;
      int dot = server.indexOf('.');
      if (dot > 0 && Character.isDigit(server.charAt(0)) == false)
        server = server.substring(0, dot);
      policyHandle = new LsaPolicyHandle(handle, "\\\\" + server, 0x00000800);
      SID.resolveSids(handle, policyHandle, sids);
    } finally {
      if (handle != null) {
        if (policyHandle != null) {
          policyHandle.close();
        }
        handle.close();
      }
    }
}
  }
 
origin: org.samba.jcifs/jcifs

if (handle != null) {
  if (policyHandle != null) {
    policyHandle.close();
origin: jcifs/jcifs

if (handle != null) {
  if (policyHandle != null) {
    policyHandle.close();
origin: com.jaeksoft/jcifs-krb5-jdk7

if (handle != null) {
  if (policyHandle != null) {
    policyHandle.close();
origin: kohsuke/jcifs

if (handle != null) {
  if (policyHandle != null) {
    policyHandle.close();
jcifs.dcerpc.msrpcLsaPolicyHandleclose

Popular methods of LsaPolicyHandle

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JFrame (javax.swing)
  • 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