congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
UnicodeString.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
jcifs.dcerpc.UnicodeString
constructor

Best Java code snippets using jcifs.dcerpc.UnicodeString.<init> (Showing top 18 results out of 315)

origin: kohsuke/jcifs

    int sid_index = rpc.names.names[si].sid_index;
    rpc.unicode_string ustr = rpc.domains.domains[sid_index].name;
    sids[si].domainName = (new UnicodeString(ustr, false)).toString();
    break;
sids[si].acctName = (new UnicodeString(rpc.names.names[si].name, false)).toString();
sids[si].origin_server = null;
sids[si].origin_auth = null;
origin: jcifs/jcifs

    int sid_index = rpc.names.names[si].sid_index;
    rpc.unicode_string ustr = rpc.domains.domains[sid_index].name;
    sids[si].domainName = (new UnicodeString(ustr, false)).toString();
    break;
sids[si].acctName = (new UnicodeString(rpc.names.names[si].name, false)).toString();
sids[si].origin_server = null;
sids[si].origin_auth = null;
origin: org.samba.jcifs/jcifs

    int sid_index = rpc.names.names[si].sid_index;
    rpc.unicode_string ustr = rpc.domains.domains[sid_index].name;
    sids[si].domainName = (new UnicodeString(ustr, false)).toString();
    break;
sids[si].acctName = (new UnicodeString(rpc.names.names[si].name, false)).toString();
sids[si].origin_server = null;
sids[si].origin_auth = null;
origin: com.jaeksoft/jcifs-krb5-jdk7

    int sid_index = rpc.names.names[si].sid_index;
    rpc.unicode_string ustr = rpc.domains.domains[sid_index].name;
    sids[si].domainName = (new UnicodeString(ustr, false)).toString();
    break;
sids[si].acctName = (new UnicodeString(rpc.names.names[si].name, false)).toString();
sids[si].origin_server = null;
sids[si].origin_auth = null;
origin: AgNO3/jcifs-ng

case jcifs.SID.SID_TYPE_WKN_GRP:
  rpc.unicode_string ustr = rpc.domains.domains[ resp.sid_index ].name;
  out.domainName = ( new UnicodeString(ustr, false) ).toString();
  break;
UnicodeString ucstr = new UnicodeString(resp.name, false);
out.acctName = ucstr.toString();
out.type = resp.sid_type;
origin: org.codelibs/jcifs

case jcifs.SID.SID_TYPE_WKN_GRP:
  rpc.unicode_string ustr = rpc.domains.domains[ resp.sid_index ].name;
  out.domainName = ( new UnicodeString(ustr, false) ).toString();
  break;
UnicodeString ucstr = new UnicodeString(resp.name, false);
out.acctName = ucstr.toString();
out.type = resp.sid_type;
origin: AgNO3/jcifs-ng

@Override
public SID getServerSid ( CIFSContext tc, String server ) throws CIFSException {
  lsarpc.LsarDomainInfo info = new lsarpc.LsarDomainInfo();
  MsrpcQueryInformationPolicy rpc;
  synchronized ( this.sidCache ) {
    try ( DcerpcHandle handle = DcerpcHandle.getHandle("ncacn_np:" + server + "[\\PIPE\\lsarpc]", tc) ) {
      // NetApp doesn't like the 'generic' access mask values
      try ( LsaPolicyHandle policyHandle = new LsaPolicyHandle(handle, null, 0x00000001) ) {
        rpc = new MsrpcQueryInformationPolicy(policyHandle, (short) lsarpc.POLICY_INFO_ACCOUNT_DOMAIN, info);
        handle.sendrecv(rpc);
        if ( rpc.retval != 0 )
          throw new SmbException(rpc.retval, false);
      }
      return new SID(info.sid, jcifs.SID.SID_TYPE_DOMAIN, ( new UnicodeString(info.name, false) ).toString(), null, false);
    }
    catch ( IOException e ) {
      throw new CIFSException("Failed to get SID from server", e);
    }
  }
}
origin: org.codelibs/jcifs

@Override
public SID getServerSid ( CIFSContext tc, String server ) throws CIFSException {
  lsarpc.LsarDomainInfo info = new lsarpc.LsarDomainInfo();
  MsrpcQueryInformationPolicy rpc;
  synchronized ( this.sidCache ) {
    try ( DcerpcHandle handle = DcerpcHandle.getHandle("ncacn_np:" + server + "[\\PIPE\\lsarpc]", tc) ) {
      // NetApp doesn't like the 'generic' access mask values
      try ( LsaPolicyHandle policyHandle = new LsaPolicyHandle(handle, null, 0x00000001) ) {
        rpc = new MsrpcQueryInformationPolicy(policyHandle, (short) lsarpc.POLICY_INFO_ACCOUNT_DOMAIN, info);
        handle.sendrecv(rpc);
        if ( rpc.retval != 0 )
          throw new SmbException(rpc.retval, false);
      }
      return new SID(info.sid, jcifs.SID.SID_TYPE_DOMAIN, ( new UnicodeString(info.name, false) ).toString(), null, false);
    }
    catch ( IOException e ) {
      throw new CIFSException("Failed to get SID from server", e);
    }
  }
}
origin: org.codelibs/jcifs

groupSid.type = jcifs.SID.SID_TYPE_ALIAS;
groupSid.domainName = domSid.getDomainName();
groupSid.acctName = ( new UnicodeString(entry.name, false) ).toString();
origin: AgNO3/jcifs-ng

groupSid.type = jcifs.SID.SID_TYPE_ALIAS;
groupSid.domainName = domSid.getDomainName();
groupSid.acctName = ( new UnicodeString(entry.name, false) ).toString();
origin: org.samba.jcifs/jcifs

(new UnicodeString(info.name, false)).toString(),
null,
false);
origin: kohsuke/jcifs

(new UnicodeString(info.name, false)).toString(),
null,
false);
origin: jcifs/jcifs

(new UnicodeString(info.name, false)).toString(),
null,
false);
origin: com.jaeksoft/jcifs-krb5-jdk7

(new UnicodeString(info.name, false)).toString(),
null,
false);
origin: com.jaeksoft/jcifs-krb5-jdk7

groupSid.type = SID_TYPE_ALIAS;
groupSid.domainName = domsid.getDomainName();
groupSid.acctName = (new UnicodeString(entry.name, false)).toString();
origin: org.samba.jcifs/jcifs

groupSid.type = SID_TYPE_ALIAS;
groupSid.domainName = domsid.getDomainName();
groupSid.acctName = (new UnicodeString(entry.name, false)).toString();
origin: kohsuke/jcifs

groupSid.type = SID_TYPE_ALIAS;
groupSid.domainName = domsid.getDomainName();
groupSid.acctName = (new UnicodeString(entry.name, false)).toString();
origin: jcifs/jcifs

groupSid.type = SID_TYPE_ALIAS;
groupSid.domainName = domsid.getDomainName();
groupSid.acctName = (new UnicodeString(entry.name, false)).toString();
jcifs.dcerpcUnicodeString<init>

Popular methods of UnicodeString

  • toString

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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