Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe1bdb03 authored by Eric Biggers's avatar Eric Biggers
Browse files

SyntheticPasswordManager: remove unused methods

Remove the createStrongTokenBasedSyntheticPassword() and
createWeakTokenBasedSyntheticPassword() methods, as they are unused.

Bug: 206485383
Change-Id: I66c9e1e0d3303a3f2f1da9c61d63b487cdaeb70b
parent 36d92a6f
Loading
Loading
Loading
Loading
+0 −20
Original line number Diff line number Diff line
@@ -929,26 +929,6 @@ public class SyntheticPasswordManager {

    private ArrayMap<Integer, ArrayMap<Long, TokenData>> tokenMap = new ArrayMap<>();

    /**
     * Create a token based Synthetic password for the given user.
     * @return the handle of the token
     */
    public long createStrongTokenBasedSyntheticPassword(byte[] token, int userId,
            @Nullable EscrowTokenStateChangeCallback changeCallback) {
        return createTokenBasedSyntheticPassword(token, TOKEN_TYPE_STRONG, userId,
                changeCallback);
    }

    /**
     * Create a weak token based Synthetic password for the given user.
     * @return the handle of the weak token
     */
    public long createWeakTokenBasedSyntheticPassword(byte[] token, int userId,
            @Nullable EscrowTokenStateChangeCallback changeCallback) {
        return createTokenBasedSyntheticPassword(token, TOKEN_TYPE_WEAK, userId,
                changeCallback);
    }

    /**
     * Create a token based Synthetic password of the given type for the given user.
     * @return the handle of the token