@Path(value="/authentication") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public abstract class AuthenticationEndpoint extends Object
| Constructor and Description |
|---|
AuthenticationEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
authenticate(String username,
String password)
Authenticate against your user-management-system.
|
javax.ws.rs.core.Response |
authenticateUser(String username,
String password)
Authenticate user.
|
protected abstract String |
newToken(String username)
Create a new token that is associated with the given username.
|
protected abstract void authenticate(String username, String password) throws Exception
username - the usernamepassword - the passwordException - is thrown if the credentials are not valid@POST
public javax.ws.rs.core.Response authenticateUser(@FormParam(value="username")
String username,
@FormParam(value="password")
String password)
username - the usernamepassword - the passwordCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.