Exemplo n.º 1
0
 public void Dispose()
 {
     _AuthToken        = null;
     _Claims           = null;
     _CurrentSecretKey = null;
     _Envelope         = null;
     _RawToken         = null;
 }
Exemplo n.º 2
0
        private void ExtractEnvelopeInfo()
        {
            string envelopeText = _RawToken.Envelope;

            try
            {
                _Envelope = SOSCodecs.Deserialize(envelopeText, typeof(JWTEnvelope)) as JWTEnvelope;
            }
            catch (Exception ex)
            {
                throw new SerializationException(string.Format("Failed To Deserialize Base 64 encoded JWT Envelope to JSON Object. Text:{0}", envelopeText),
                                                 ex);
            }
        }