asit.framework.utils
Class BPK
java.lang.Object
asit.framework.utils.BPK
- public class BPK
- extends Object
- Author:
- troessler
|
Constructor Summary |
BPK()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BPK
public BPK()
calcBPK
public static String calcBPK(String stammzahl,
String context,
String encoding)
throws NoSuchAlgorithmException,
UnsupportedEncodingException
- Parameters:
stammzahl - context -
- Returns:
- @throws
Exception
- Throws:
UnsupportedEncodingException
NoSuchAlgorithmException
calcWBPK
public static String calcWBPK(String stammzahl,
String company,
String encoding)
throws Exception
- Parameters:
stammzahl - company -
- Returns:
- @throws
Exception
- Throws:
Exception
calcHash
public static String calcHash(String data,
String encoding)
throws NoSuchAlgorithmException,
UnsupportedEncodingException
- Parameters:
data -
- Returns:
- @throws
Exception
- Throws:
NoSuchAlgorithmException
UnsupportedEncodingException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
encodeBase64
public static byte[] encodeBase64(byte[] binaryData)
- Encodes hex octects into Base64.
Function talen from the file
/jakarta-commons/codec/src/java/org/apache/commons/codec/binary/Base64.java
License see above
Slightly modified (removed constants and isChunked logic) --Arno
- Parameters:
binaryData - Array containing binary data to encode.
- Returns:
- Base64-encoded data.
Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.