Lines Matching defs:IpSecTransform

37  * This class represents an IpSecTransform, which encapsulates both properties and state of IPsec.
39 * <p>IpSecTransforms must be built from an IpSecTransform.Builder, and they must persist throughout
43 * <p>An IpSecTransform may either represent a tunnel mode transform that operates on a wide array
48 public final class IpSecTransform implements AutoCloseable {
49 private static final String TAG = "IpSecTransform";
52 * For direction-specific attributes of an IpSecTransform, indicates that an attribute applies
58 * For direction-specific attributes of an IpSecTransform, indicates that an attribute applies
98 private IpSecTransform(Context context, IpSecConfig config) {
123 "Failed to allocate a new IpSecTransform");
133 private IpSecTransform activate()
162 * Deactivate an IpSecTransform and free all resources for that transform that are managed by
253 Log.wtf(TAG, "Keepalive already started for this IpSecTransform.");
302 * Builder object to facilitate the creation of IpSecTransform objects.
305 * IpSecTransform object.
317 * direction, creation of an IpSecTransform will fail upon calling a build() method.
322 public IpSecTransform.Builder setEncryption(
332 * direction, creation of an IpSecTransform will fail upon calling a build() method.
337 public IpSecTransform.Builder setAuthentication(
360 public IpSecTransform.Builder setSpi(
378 public IpSecTransform.Builder setUnderlyingNetwork(Network net) {
394 public IpSecTransform.Builder setIpv4Encapsulation(
416 public IpSecTransform.Builder setNattKeepalive(int intervalSeconds) {
422 * Build and return an active {@link IpSecTransform} object as a Transport Mode Transform.
427 * <p>Upon a successful return from this call, the provided IpSecTransform will be active
428 * and may be applied to sockets. If too many IpSecTransform objects are active for a given
431 * IpSecTransform#close()} when they are no longer needed.
447 public IpSecTransform buildTransportModeTransform(InetAddress remoteAddress)
454 return new IpSecTransform(mContext, mConfig).activate();
458 * Build and return an {@link IpSecTransform} object as a Tunnel Mode Transform. Some
470 public IpSecTransform buildTunnelModeTransform(
477 return new IpSecTransform(mContext, mConfig);
481 * Create a new IpSecTransform.Builder to construct an IpSecTransform