    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.

##

PKCS5()

##

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

##

PKCS5

     public PKCS5()

##

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.

unpad

     public int unpad(byte in[],
                      int off,
                      int len)

  Returns the index where padding starts.

  Returns:
    the index where the padding start.

padLength

     public int padLength(byte b[],
                          int off,
                          int len)

  Return the length of the padding for some length.

padLength

     public int padLength(int len)

paddingScheme

     public String paddingScheme()

  Return the standard name of the padding scheme implemented.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index