/** * Return text represeting the SID type suitable for display to * users. Text includes 'User', 'Domain group', 'Local group', etc. */ public String getTypeText() { if (origin_server != null) resolveWeak(); return SID_TYPE_NAMES[type]; }
/** * Return text represeting the SID type suitable for display to * users. Text includes 'User', 'Domain group', 'Local group', etc. */ public String getTypeText() { if (origin_server != null) resolveWeak(); return SID_TYPE_NAMES[type]; }
@Override public int getType () { if ( this.origin_server != null ) resolveWeak(); return this.type; }
/** * Return text represeting the SID type suitable for display to * users. Text includes 'User', 'Domain group', 'Local group', etc. */ public String getTypeText() { if (origin_server != null) resolveWeak(); return SID_TYPE_NAMES[type]; }
@Override public int getType () { if ( this.origin_server != null ) resolveWeak(); return this.type; }
@Override public String getAccountName () { if ( this.origin_server != null ) resolveWeak(); if ( this.type == SID_TYPE_UNKNOWN ) return "" + this.sub_authority[ this.sub_authority_count - 1 ]; if ( this.type == SID_TYPE_DOMAIN ) return ""; return this.acctName; }
@Override public String getTypeText () { if ( this.origin_server != null ) resolveWeak(); return SID_TYPE_NAMES[ this.type ]; }
@Override public String getTypeText () { if ( this.origin_server != null ) resolveWeak(); return SID_TYPE_NAMES[ this.type ]; }
@Override public String getAccountName () { if ( this.origin_server != null ) resolveWeak(); if ( this.type == SID_TYPE_UNKNOWN ) return "" + this.sub_authority[ this.sub_authority_count - 1 ]; if ( this.type == SID_TYPE_DOMAIN ) return ""; return this.acctName; }
/** * Return text represeting the SID type suitable for display to * users. Text includes 'User', 'Domain group', 'Local group', etc. */ public String getTypeText() { if (origin_server != null) resolveWeak(); return SID_TYPE_NAMES[type]; }
/** * Return the sAMAccountName of this SID unless it could not * be resolved in which case the numeric RID is returned. If this * SID is a domain SID, this method will return an empty String. */ public String getAccountName() { if (origin_server != null) resolveWeak(); if (type == SID_TYPE_UNKNOWN) return "" + sub_authority[sub_authority_count - 1]; if (type == SID_TYPE_DOMAIN) return ""; return acctName; }
/** * Return the sAMAccountName of this SID unless it could not * be resolved in which case the numeric RID is returned. If this * SID is a domain SID, this method will return an empty String. */ public String getAccountName() { if (origin_server != null) resolveWeak(); if (type == SID_TYPE_UNKNOWN) return "" + sub_authority[sub_authority_count - 1]; if (type == SID_TYPE_DOMAIN) return ""; return acctName; }
/** * Return the sAMAccountName of this SID unless it could not * be resolved in which case the numeric RID is returned. If this * SID is a domain SID, this method will return an empty String. */ public String getAccountName() { if (origin_server != null) resolveWeak(); if (type == SID_TYPE_UNKNOWN) return "" + sub_authority[sub_authority_count - 1]; if (type == SID_TYPE_DOMAIN) return ""; return acctName; }
/** * Return the sAMAccountName of this SID unless it could not * be resolved in which case the numeric RID is returned. If this * SID is a domain SID, this method will return an empty String. */ public String getAccountName() { if (origin_server != null) resolveWeak(); if (type == SID_TYPE_UNKNOWN) return "" + sub_authority[sub_authority_count - 1]; if (type == SID_TYPE_DOMAIN) return ""; return acctName; }
@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; }