title: SecurityContextHolder.getContext() not working in AspectJ class
body: <p>I created an @Aspect class and trying to get the principal object like..</p>
  
  <pre><code>SecurityContextHolder.getContext().getAuthentication() .getPrincipal()
  </code></pre>
  
  <p>inside my aspect class but I am getting null pointer. No context is available in my aspect.Any pointers.?</p>