All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.security.cipher.SSLPadding

java.lang.Object
   |
   +----java.security.Padding
           |
           +----iaik.security.cipher.SSLPadding

public synchronized class SSLPadding
extends Padding
Implements a padding scheme as specified in the SSL v3.0 Specification.


Constructor Index

 o SSLPadding()

Method Index

 o getName()
Return the standard name of the padding scheme implemented.
 o pad(byte[], int, int)
Returns the padding for a given array.
 o paddingScheme()
Return the standard name of the padding scheme implemented.
 o padLength(byte[], int, int)
Return the length of the padding for some length.
 o padLength(int)
Return the length of the padding for some length.
 o unpad(byte[], int, int)
Returns the length of the unpadded message.

Constructors

 o SSLPadding
 public SSLPadding()

Methods

 o pad
 public int pad(byte in[],
                int off,
                int len)
Returns the padding for a given array.

Parameters:
in - the message to pad big enough to hold the padding string
off - where the message starts
len - length of the message
Returns:
the number of padding bytes written to out.
Overrides:
pad in class Padding
 o unpad
 public int unpad(byte in[],
                  int off,
                  int len)
Returns the length of the unpadded message.

Parameters:
in - the message to unpad
off - where the padded message starts
len - length of the padded message
Returns:
the length of the unpadded message
Overrides:
unpad in class Padding
 o padLength
 public int padLength(byte in[],
                      int off,
                      int len)
Return the length of the padding for some length.

Parameters:
in - the message to pad
off - where the padding string should start
len - length of the message
Returns:
the number of bytes which will be added
 o padLength
 public int padLength(int len)
Return the length of the padding for some length.

Parameters:
len - length of the message
Returns:
the number of bytes which will be added
Overrides:
padLength in class Padding
 o paddingScheme
 public String paddingScheme()
Return the standard name of the padding scheme implemented.

Overrides:
paddingScheme in class Padding
 o getName
 public String getName()
Return the standard name of the padding scheme implemented.

Overrides:
getName in class Padding

All Packages  Class Hierarchy  This Package  Previous  Next  Index