All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.security.pkcs.PKCS5

java.lang.Object
   |
   +----sun.security.pkcs.PKCS5

public class PKCS5
extends Object
implements Padding
A class which implement PKCS5 password-based encryption. It implements the java.security.Padding interface.

It may also be used as a padding class only.


Constructor Index

 o PKCS5()

Method Index

 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)
 o unpad(byte[], int, int)
Returns the index where padding starts.

Constructors

 o PKCS5
 public PKCS5()

Methods

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

Returns:
s the padding for the byte array.
 o unpad
 public int unpad(byte in[],
                  int off,
                  int len)
Returns the index where padding starts.

Returns:
the index where the padding start.
 o padLength
 public int padLength(byte b[],
                      int off,
                      int len)
Return the length of the padding for some length.

 o padLength
 public int padLength(int len)
 o paddingScheme
 public String paddingScheme()
Return the standard name of the padding scheme implemented.


All Packages  Class Hierarchy  This Package  Previous  Next  Index