aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Security
Commit message (Collapse)AuthorAgeFilesLines
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0410-15/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make Security module strictJ0WI2021-04-192-4/+10
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Merge pull request #22432 from nextcloud/enh/phpdocRoeland Jago Douma2020-08-265-5/+0
|\ | | | | Add php docs build script
| * Remove @package annotations from public namespaceJulius Härtl2020-08-265-5/+0
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update the license headers for Nextcloud 20Christoph Wurst2020-08-243-1/+6
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix CSJoas Schilling2020-08-191-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Send "429 Too Many Requests" in case of brute force protectionJoas Schilling2020-08-191-0/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add PHP doc for eventsMorris Jobke2020-08-102-0/+12
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-293-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix credentialsManager documentation and ensure userId to be used as stringArthur Schiwon2020-04-151-3/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add visibility to all constantsChristoph Wurst2020-04-101-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-4/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing whitespaces from commentsChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-0/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-059-13/+34
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed events for password_policyChristoph Wurst2019-11-272-0/+101
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use Symfony's new contract Event class instead of the deprecated oneChristoph Wurst2019-09-122-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add feature policy headerRoeland Jago Douma2019-08-101-0/+52
| | | | | | | This adds the events and the classes to modify the feature policy. It also adds a default restricted feature policy. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add an event to edit the CSPRoeland Jago Douma2019-07-082-0/+54
| | | | | | | | This introduces and event that can be listend to when we actually use the CSP. This means that apps no longer have to always inject their CSP but only do so when it is required. Yay for being lazy. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecatred StringUtils classRoeland Jago Douma2019-05-281-49/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not use spaces in generated passwordsMorris Jobke2019-04-151-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated functions from SecureRandomRoeland Jago Douma2018-12-071-26/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Throw exception if decryption failsRoeland Jago Douma2018-11-141-0/+1
| | | | | | For #11868 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make OCP\Security stricterRoeland Jago Douma2018-01-163-5/+8
| | | | | | | | | | | * Add typehints * Add return types * Opcode opts from phpstorm * Made strict * Fixed tests: No need to test bogus values anymore strict typing fixes this Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix testsRoeland Jago Douma2018-01-141-2/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Strict ISecure randomRoeland Jago Douma2018-01-131-2/+4
| | | | | | | | | * Declare strict * Scalar arguments * Return type * Use fully qualified name for strlen Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adds type hinting for scalar types in ICrypto->decryptMorris Jobke2018-01-131-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Some phpstorm inspection fixesRoeland Jago Douma2017-07-221-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Increase device password entropy. Use lower- and upper-case characters and ↵Fabrizio Steiner2017-05-081-0/+7
| | | | | | digits, but exclude ambiguous characters. The number of digits has also been increased to 25. Signed-off-by: Fabrizio Steiner <fabrizio.steiner@gmail.com>
* Fix othersJoas Schilling2016-07-216-6/+12
|
* Update license headersLukas Reschke2016-05-265-5/+5
|
* Move \OCP\Security to PSR-4Roeland Jago Douma2016-05-186-0/+380