Lines Matching defs:transform

70      * request. If encountered, selection of a new SPI is required before a transform may be
78 * Construct an exception indicating that a transform with the given SPI is already in use
241 * transform. For security reasons, attempts to send traffic to any IP address other than the
242 * address associated with that transform will throw an IOException. In addition, if the
244 * send() or receive() until the transform is removed from the socket by calling {@link
248 * @param transform an {@link IpSecTransform}, which must be an active Transport Mode transform.
251 public void applyTransportModeTransform(Socket socket, IpSecTransform transform)
253 applyTransportModeTransform(ParcelFileDescriptor.fromSocket(socket), transform);
259 * transform. For security reasons, attempts to send traffic to any IP address other than the
260 * address associated with that transform will throw an IOException. In addition, if the
262 * send() or receive() until the transform is removed from the socket by calling {@link
266 * @param transform an {@link IpSecTransform}, which must be an active Transport Mode transform.
269 public void applyTransportModeTransform(DatagramSocket socket, IpSecTransform transform)
271 applyTransportModeTransform(ParcelFileDescriptor.fromDatagramSocket(socket), transform);
274 /* Call down to activate a transform */
275 private void applyTransportModeTransform(ParcelFileDescriptor pfd, IpSecTransform transform) {
277 mService.applyTransportModeTransform(pfd, transform.getResourceId());
286 * transform. For security reasons, attempts to send traffic to any IP address other than the
287 * address associated with that transform will throw an IOException. In addition, if the
289 * send() or receive() until the transform is removed from the socket by calling {@link
293 * @param transform an {@link IpSecTransform}, which must be an active Transport Mode transform.
295 public void applyTransportModeTransform(FileDescriptor socket, IpSecTransform transform)
297 applyTransportModeTransform(new ParcelFileDescriptor(socket), transform);
308 * @param transform an {@link IpSecTransform}, which must be an active Tunnel Mode transform.
311 public void applyTunnelModeTransform(Network net, IpSecTransform transform) {}
314 * Remove a transform from a given stream socket. Once removed, traffic on the socket will not
317 * regardless of the underlying state of a transform. If a transform is removed, communication
318 * on all sockets to which that transform was applied will fail until this method is called.
320 * @param socket a socket that previously had a transform applied to it.
321 * @param transform the IPsec Transform that was previously applied to the given socket
324 public void removeTransportModeTransform(Socket socket, IpSecTransform transform)
326 removeTransportModeTransform(ParcelFileDescriptor.fromSocket(socket), transform);
330 * Remove a transform from a given datagram socket. Once removed, traffic on the socket will not
333 * regardless of the underlying state of a transform. If a transform is removed, communication
334 * on all sockets to which that transform was applied will fail until this method is called.
336 * @param socket a socket that previously had a transform applied to it.
337 * @param transform the IPsec Transform that was previously applied to the given socket
340 public void removeTransportModeTransform(DatagramSocket socket, IpSecTransform transform)
342 removeTransportModeTransform(ParcelFileDescriptor.fromDatagramSocket(socket), transform);
346 * Remove a transform from a given stream socket. Once removed, traffic on the socket will not
349 * regardless of the underlying state of a transform. If a transform is removed, communication
350 * on all sockets to which that transform was applied will fail until this method is called.
352 * @param socket a socket file descriptor that previously had a transform applied to it.
353 * @param transform the IPsec Transform that was previously applied to the given socket
355 public void removeTransportModeTransform(FileDescriptor socket, IpSecTransform transform)
357 removeTransportModeTransform(new ParcelFileDescriptor(socket), transform);
360 /* Call down to activate a transform */
361 private void removeTransportModeTransform(ParcelFileDescriptor pfd, IpSecTransform transform) {
363 mService.removeTransportModeTransform(pfd, transform.getResourceId());
375 * @param net a network that currently has transform applied to it.
376 * @param transform a Tunnel Mode IPsec Transform that has been previously applied to the given
380 public void removeTunnelModeTransform(Network net, IpSecTransform transform) {}