com.microsoft.graph.beta.generated.models.VpnAuthenticationMethod Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.ValuedEnum;
import java.util.Objects;
/**
* VPN Authentication Method.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public enum VpnAuthenticationMethod implements ValuedEnum {
/** Authenticate with a certificate. */
Certificate("certificate"),
/** Use username and password for authentication. */
UsernameAndPassword("usernameAndPassword"),
/** Use Shared Secret for Authentication. Only valid for iOS IKEv2. */
SharedSecret("sharedSecret"),
/** Use Derived Credential for Authentication. */
DerivedCredential("derivedCredential"),
/** Use Azure AD for authentication. */
AzureAD("azureAD");
public final String value;
VpnAuthenticationMethod(final String value) {
this.value = value;
}
@jakarta.annotation.Nonnull
public String getValue() { return this.value; }
@jakarta.annotation.Nullable
public static VpnAuthenticationMethod forValue(@jakarta.annotation.Nonnull final String searchValue) {
Objects.requireNonNull(searchValue);
switch(searchValue) {
case "certificate": return Certificate;
case "usernameAndPassword": return UsernameAndPassword;
case "sharedSecret": return SharedSecret;
case "derivedCredential": return DerivedCredential;
case "azureAD": return AzureAD;
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy