Class PasswordsResource
- java.lang.Object
-
- no.priv.bang.authservice.web.security.resources.HtmlTemplateResource
-
- no.priv.bang.authservice.web.security.resources.LoggedInUserResource
-
- no.priv.bang.authservice.web.security.resources.PasswordsResource
-
@Path("/password") public class PasswordsResource extends LoggedInUserResource
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.osgi.service.log.LogService
logservice
private static String
PASSWORD_HTML
(package private) no.priv.bang.osgiservice.users.UserManagementService
useradmin
-
Constructor Summary
Constructors Constructor Description PasswordsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
changePasswordForCurrentUser(String password1, String password2)
private javax.ws.rs.core.Response
createInternalServerErrorResponse()
private org.jsoup.nodes.FormElement
fillFormValues(org.jsoup.nodes.Document html, String password1, String password2)
InputStream
get()
-
Methods inherited from class no.priv.bang.authservice.web.security.resources.LoggedInUserResource
findLoggedInUser
-
Methods inherited from class no.priv.bang.authservice.web.security.resources.HtmlTemplateResource
getClasspathResource, loadHtmlFile, loadHtmlFileAndSetMessage, setError, setMessage
-
-
-
-
Field Detail
-
PASSWORD_HTML
private static final String PASSWORD_HTML
- See Also:
- Constant Field Values
-
logservice
@Inject org.osgi.service.log.LogService logservice
-
useradmin
@Inject no.priv.bang.osgiservice.users.UserManagementService useradmin
-
-
Method Detail
-
get
@GET @Produces("text/html") public InputStream get()
-
changePasswordForCurrentUser
@POST @Produces("text/html") public javax.ws.rs.core.Response changePasswordForCurrentUser(@FormParam("password1") String password1, @FormParam("password2") String password2)
-
fillFormValues
private org.jsoup.nodes.FormElement fillFormValues(org.jsoup.nodes.Document html, String password1, String password2)
-
createInternalServerErrorResponse
private javax.ws.rs.core.Response createInternalServerErrorResponse()
-
-