blob: 2379472c4a0a07a574194302b1d2d8ff90adb518 [file] [log] [blame]
/*
* Copyright (C) 2020 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.ipsec.ike.ike3gpp;
import android.annotation.IntDef;
import android.annotation.SystemApi;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Ike3gppInfo represents a 3GPP-specific payload sent by the peer/remote endpoint.
*
* @see 3GPP ETSI TS 24.302: Access to the 3GPP Evolved Packet Core (EPC) via non-3GPP access
* networks
* @hide
*/
@SystemApi
public abstract class Ike3gppInfo {
private static final int INFO_TYPE_SHARED_BASE = 0;
private static final int INFO_TYPE_CATEGORY_SIZE = 100;
private static final int INFO_TYPE_PAYLOAD_NOTIFY_BASE = INFO_TYPE_SHARED_BASE;
/** Info Type representing an {@link Ike3gppN1ModeInformation}. */
public static final int INFO_TYPE_NOTIFY_N1_MODE_INFORMATION =
INFO_TYPE_PAYLOAD_NOTIFY_BASE + 1;
/** Info Type representing an {@link Ike3gppBackoffTimer}. */
public static final int INFO_TYPE_NOTIFY_BACKOFF_TIMER = INFO_TYPE_PAYLOAD_NOTIFY_BASE + 2;
/** @hide */
@Retention(RetentionPolicy.SOURCE)
@IntDef({INFO_TYPE_NOTIFY_N1_MODE_INFORMATION, INFO_TYPE_NOTIFY_BACKOFF_TIMER})
public @interface InfoType {}
/** Returns the InfoType that this Ike3gppInfo represents. */
public abstract @InfoType int getInfoType();
}