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.
-
SSLPadding()
-
-
getName()
- Return the standard name of the padding scheme implemented.
-
pad(byte[], int, int)
- Returns the padding for a given array.
-
paddingScheme()
- Return the standard name of the padding scheme implemented.
-
padLength(byte[], int, int)
- Return the length of the padding for some length.
-
padLength(int)
- Return the length of the padding for some length.
-
unpad(byte[], int, int)
- Returns the length of the unpadded message.
SSLPadding
public SSLPadding()
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
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
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
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
paddingScheme
public String paddingScheme()
- Return the standard name of the padding scheme implemented.
- Overrides:
- paddingScheme in class Padding
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