anchor.diff:  }
   ----
   
  +.Kotlin
  +[source,kotlin,role="secondary"]
  +----
  +class WebSecurity {
  +    fun check(authentication: Authentication?, request: HttpServletRequest?): Boolean {
  +        // ...
  +    }
  +}
  +----
  +====
  +
   You could refer to the method using:
   
   .Refer to method
  
positive.code: }
  ----
  
  You could refer to the method using:
  
  .Path Variables
  
negative.code: This is most commonly performed on the return value of a method.
  For example:
  
  ====
  .Java
  [source,java,role="primary"]
  ----
  @PreAuthorize("hasRole('USER')")
  @PostFilter("hasPermission(filterObject, 'read') or hasPermission(filterObject, 'admin')")
  public List<Contact> getAll();
  ----
  
  .Kotlin
  [source,kotlin,role="secondary"]
  ----
  @PreAuthorize("hasRole('USER')")
  @PostFilter("hasPermission(filterObject, 'read') or hasPermission(filterObject, 'admin')")
  fun getAll(): List<Contact?>
  ----
  ====
  
  When using the `@PostFilter` annotation, Spring Security iterates through the returned collection or map and removes any elements for which the supplied expression is false.
  For an array, a new array instance will be returned containing filtered elements.
  