@Override public String toDisplayString () { if ( this.origin_server != null ) resolveWeak(); if ( this.domainName != null ) { String str; if ( this.type == SID_TYPE_DOMAIN ) { str = this.domainName; } else if ( this.type == SID_TYPE_WKN_GRP || this.domainName.equals("BUILTIN") ) { if ( this.type == SID_TYPE_UNKNOWN ) { str = toString(); } else { str = this.acctName; } } else { str = this.domainName + "\\" + this.acctName; } return str; } return toString(); }
@Override public String toDisplayString () { if ( this.origin_server != null ) resolveWeak(); if ( this.domainName != null ) { String str; if ( this.type == SID_TYPE_DOMAIN ) { str = this.domainName; } else if ( this.type == SID_TYPE_WKN_GRP || this.domainName.equals("BUILTIN") ) { if ( this.type == SID_TYPE_UNKNOWN ) { str = toString(); } else { str = this.acctName; } } else { str = this.domainName + "\\" + this.acctName; } return str; } return toString(); }
@Override public String getDomainName () { if ( this.origin_server != null ) resolveWeak(); if ( this.type == SID_TYPE_UNKNOWN ) { String full = toString(); return full.substring(0, full.length() - getAccountName().length() - 1); } return this.domainName; }
@Override public String getDomainName () { if ( this.origin_server != null ) resolveWeak(); if ( this.type == SID_TYPE_UNKNOWN ) { String full = toString(); return full.substring(0, full.length() - getAccountName().length() - 1); } return this.domainName; }
/** * Return the domain name of this SID unless it could not be * resolved in which case the numeric representation is returned. */ public String getDomainName() { if (origin_server != null) resolveWeak(); if (type == SID_TYPE_UNKNOWN) { String full = toString(); return full.substring(0, full.length() - getAccountName().length() - 1); } return domainName; }
/** * Return the domain name of this SID unless it could not be * resolved in which case the numeric representation is returned. */ public String getDomainName() { if (origin_server != null) resolveWeak(); if (type == SID_TYPE_UNKNOWN) { String full = toString(); return full.substring(0, full.length() - getAccountName().length() - 1); } return domainName; }
/** * Return the domain name of this SID unless it could not be * resolved in which case the numeric representation is returned. */ public String getDomainName() { if (origin_server != null) resolveWeak(); if (type == SID_TYPE_UNKNOWN) { String full = toString(); return full.substring(0, full.length() - getAccountName().length() - 1); } return domainName; }
/** * Return the domain name of this SID unless it could not be * resolved in which case the numeric representation is returned. */ public String getDomainName() { if (origin_server != null) resolveWeak(); if (type == SID_TYPE_UNKNOWN) { String full = toString(); return full.substring(0, full.length() - getAccountName().length() - 1); } return domainName; }