| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.bouncycastle.crypto.paddings.PKCS7Padding
public class PKCS7Padding
A padder that adds PKCS7/PKCS5 padding to a block.
| Constructor Summary | |
|---|---|
PKCS7Padding()
 | 
|
| Method Summary | |
|---|---|
 int | 
addPadding(byte[] in,
           int inOff)
add the pad bytes to the passed in block, returning the number of bytes added.  | 
 String | 
getPaddingName()
Return the name of the algorithm the padder implements.  | 
 void | 
init(SecureRandom random)
Initialise the padder.  | 
 int | 
padCount(byte[] in)
return the number of pad bytes present in the block.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PKCS7Padding()
| Method Detail | 
|---|
public void init(SecureRandom random)
          throws IllegalArgumentException
init in interface BlockCipherPaddingrandom - - a SecureRandom if available.
IllegalArgumentExceptionpublic String getPaddingName()
getPaddingName in interface BlockCipherPadding
public int addPadding(byte[] in,
                      int inOff)
addPadding in interface BlockCipherPadding
public int padCount(byte[] in)
             throws InvalidCipherTextException
padCount in interface BlockCipherPaddingInvalidCipherTextException - if the padding is badly formed
 or invalid.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||