Decodes Basic authentication credentials. If none are present, or the credentials are malformed, throws a {@link WebApplicationException} with anappropriate authentication challenge.
To add a Basic authentication requirement to a method, simply annotate a {@link Credentials} parameter with {@link Context}:
public Response show(@Context Credentials creds) { ... }@author coda
|
|