/* * Copyright (C) 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.net.ssl; import static java.util.Objects.requireNonNull; import libcore.util.NonNull; import libcore.util.Nullable; import java.security.InvalidParameterException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.net.ssl.ManagerFactoryParameters; /** * Parameters for configuring a {@code KeyManager} that supports PAKE (Password * Authenticated Key Exchange). * *
This class holds the necessary information for the {@code KeyManager} to perform PAKE * authentication, including the IDs of the client and server involved and the available PAKE * options.
* *Instances of this class are immutable. Use the {@link Builder} to create * instances.
* * @hide */ public final class PakeClientKeyManagerParameters implements ManagerFactoryParameters { /** * Returns the client identifier. * * @return The client identifier. */ public @Nullable byte[] getClientId() { throw new RuntimeException("Stub!"); } /** * Returns the server identifier. * * @return The server identifier. */ public @Nullable byte[] getServerId() { throw new RuntimeException("Stub!"); } /** * Returns a copy of the list of available PAKE options. * * @return A copy of the list of available PAKE options. */ public @NonNull List