org.jpos.security
Class Util
java.lang.Object
org.jpos.security.Util
public class Util
- extends Object
Util class contains some useful methods.
- Version:
- $Revision$ $Date$
- Author:
- Hani S. Kirollos
|
Constructor Summary |
Util()
|
|
Method Summary |
static void |
adjustDESParity(byte[] bytes)
DES Keys use the LSB as the odd parity bit. |
static boolean |
isDESParityAdjusted(byte[] bytes)
DES Keys use the LSB as the odd parity bit. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
adjustDESParity
public static void adjustDESParity(byte[] bytes)
- DES Keys use the LSB as the odd parity bit. This method can
be used enforce correct parity.
- Parameters:
bytes - the byte array to set the odd parity on.
isDESParityAdjusted
public static boolean isDESParityAdjusted(byte[] bytes)
- DES Keys use the LSB as the odd parity bit. This method checks
whether the parity is adjusted or not
- Parameters:
bytes - the byte[] to be checked
- Returns:
- true if parity is adjusted else returns false
Copyright © 1998-2012 jPOS.org. All Rights Reserved.