public override string GetService() { lock (this) { SecurityProtos.TokenProtoOrBuilder p = viaProto ? proto : builder; if (!p.HasService()) { return(null); } return(p.GetService()); } }
public override ByteBuffer GetPassword() { lock (this) { SecurityProtos.TokenProtoOrBuilder p = viaProto ? proto : builder; if (this.password != null) { return(this.password); } if (!p.HasPassword()) { return(null); } this.password = ConvertFromProtoFormat(p.GetPassword()); return(this.password); } }
public override ByteBuffer GetIdentifier() { lock (this) { SecurityProtos.TokenProtoOrBuilder p = viaProto ? proto : builder; if (this.identifier != null) { return(this.identifier); } if (!p.HasIdentifier()) { return(null); } this.identifier = ConvertFromProtoFormat(p.GetIdentifier()); return(this.identifier); } }