public SessionAntiHijackHashInjector(ISessionAntiHijackHashGenerator hashGenerator)
 {
     if (hashGenerator == null)
     {
         throw new ArgumentNullException(nameof(hashGenerator));
     }
     _hashGenerator = hashGenerator;
 }
   public SessionHijackDetector(
 ISessionDetector sessionDetector,
 ISecureSessionCookieReader cookieReader,
 ISessionAntiHijackHashGenerator hashGenerator)
   {
       if (sessionDetector == null) throw new ArgumentNullException(nameof(sessionDetector));
         if (cookieReader == null) throw new ArgumentNullException(nameof(cookieReader));
         if (hashGenerator == null) throw new ArgumentNullException(nameof(hashGenerator));
         _sessionDetector = sessionDetector;
         _cookieReader = cookieReader;
         _hashGenerator = hashGenerator;
   }
Exemplo n.º 3
0
 public SessionHijackDetector(
     ISessionDetector sessionDetector,
     ISecureSessionCookieReader cookieReader,
     ISessionAntiHijackHashGenerator hashGenerator)
 {
     if (sessionDetector == null)
     {
         throw new ArgumentNullException(nameof(sessionDetector));
     }
     if (cookieReader == null)
     {
         throw new ArgumentNullException(nameof(cookieReader));
     }
     if (hashGenerator == null)
     {
         throw new ArgumentNullException(nameof(hashGenerator));
     }
     _sessionDetector = sessionDetector;
     _cookieReader    = cookieReader;
     _hashGenerator   = hashGenerator;
 }
 public SessionAntiHijackHashInjector(ISessionAntiHijackHashGenerator hashGenerator)
 {
     if (hashGenerator == null) throw new ArgumentNullException(nameof(hashGenerator));
       _hashGenerator = hashGenerator;
 }