Пример #1
0
 public override string GetService()
 {
     lock (this)
     {
         SecurityProtos.TokenProtoOrBuilder p = viaProto ? proto : builder;
         if (!p.HasService())
         {
             return(null);
         }
         return(p.GetService());
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
 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);
     }
 }