Skip to content

fix(auth): Make user import hashing classes final #425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/hash/Bcrypt.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Represents the Bcrypt password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class Bcrypt extends UserImportHash {
public final class Bcrypt extends UserImportHash {

private Bcrypt() {
super("BCRYPT");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/hash/HmacMd5.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the HMAC MD5 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class HmacMd5 extends Hmac {
public final class HmacMd5 extends Hmac {

private HmacMd5(Builder builder) {
super("HMAC_MD5", builder);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/hash/HmacSha1.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the HMAC SHA1 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class HmacSha1 extends Hmac {
public final class HmacSha1 extends Hmac {

private HmacSha1(Builder builder) {
super("HMAC_SHA1", builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the HMAC SHA256 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class HmacSha256 extends Hmac {
public final class HmacSha256 extends Hmac {

private HmacSha256(Builder builder) {
super("HMAC_SHA256", builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the HMAC SHA512 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class HmacSha512 extends Hmac {
public final class HmacSha512 extends Hmac {

private HmacSha512(Builder builder) {
super("HMAC_SHA512", builder);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/hash/Md5.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the MD5 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class Md5 extends RepeatableHash {
public final class Md5 extends RepeatableHash {

private Md5(Builder builder) {
super("MD5", 0, 8192, builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the PBKDF2 SHA256 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class Pbkdf2Sha256 extends RepeatableHash {
public final class Pbkdf2Sha256 extends RepeatableHash {

private Pbkdf2Sha256(Builder builder) {
super("PBKDF2_SHA256", 0, 120000, builder);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/hash/PbkdfSha1.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the PBKDF SHA1 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class PbkdfSha1 extends RepeatableHash {
public final class PbkdfSha1 extends RepeatableHash {

private PbkdfSha1(Builder builder) {
super("PBKDF_SHA1", 0, 120000, builder);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/hash/Sha1.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the SHA1 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class Sha1 extends RepeatableHash {
public final class Sha1 extends RepeatableHash {

private Sha1(Builder builder) {
super("SHA1", 1, 8192, builder);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/hash/Sha256.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the SHA256 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class Sha256 extends RepeatableHash {
public final class Sha256 extends RepeatableHash {

private Sha256(Builder builder) {
super("SHA256", 1, 8192, builder);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/google/firebase/auth/hash/Sha512.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Represents the SHA512 password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class Sha512 extends RepeatableHash {
public final class Sha512 extends RepeatableHash {

private Sha512(Builder builder) {
super("SHA512", 1, 8192, builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Represents the Standard Scrypt password hashing algorithm. Can be used as an instance of
* {@link com.google.firebase.auth.UserImportHash} when importing users.
*/
public class StandardScrypt extends UserImportHash {
public final class StandardScrypt extends UserImportHash {

private final int derivedKeyLength;
private final int blockSize;
Expand Down