Annotation Interface Authenticate


@Target(METHOD) @Retention(RUNTIME) public @interface Authenticate
Marks a method as one which can be used to authenticate a user. This is done in 3 possible ways:
  • return a password. This allows Milton to authenticate the user given a variety on inputs
  • method which takes a requested password and verifies it. This is useful for Basic authentication if you store hashed passwords
  • method which takes a Digest request and verifies it. This is useful for supporting Digest authentication if you store hashed passwords