|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.security.CryptographicServiceMessage
public class CryptographicServiceMessage
Cryptographic Service Message (CSM for short). A message for transporting keys or related information used to control a keying relationship. It is typically the contents of ISOField(123). For more information refer to ANSI X9.17: Financial Institution Key Mangement (Wholesale).
| Nested Class Summary | |
|---|---|
static class |
CryptographicServiceMessage.ParsingException
|
| Field Summary | |
|---|---|
static String |
MCL_ESM
|
static String |
MCL_KSM
|
static String |
MCL_RSI
|
static String |
MCL_RSM
|
static String |
TAG_CTP
|
static String |
TAG_CTR
|
static String |
TAG_ERF
|
static String |
TAG_KD
|
static String |
TAG_ORG
|
static String |
TAG_RCV
|
static String |
TAG_SVR
|
| Constructor Summary | |
|---|---|
CryptographicServiceMessage()
|
|
CryptographicServiceMessage(String mcl)
Creates a CSM and sets its Message Class |
|
| Method Summary | |
|---|---|
void |
addField(String tag,
String content)
adds a field to the CSM |
void |
dump(PrintStream p,
String indent)
dumps CSM basic information |
String |
getFieldContent(String tag)
Returns the field content of a field with the given tag |
String |
getMCL()
|
static CryptographicServiceMessage |
parse(String csmString)
Parses a csm string |
void |
setMCL(String mcl)
|
String |
toString()
Formats the CSM as a string, suitable for transfer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MCL_RSI
public static final String MCL_KSM
public static final String MCL_RSM
public static final String MCL_ESM
public static final String TAG_RCV
public static final String TAG_ORG
public static final String TAG_SVR
public static final String TAG_KD
public static final String TAG_CTP
public static final String TAG_CTR
public static final String TAG_ERF
| Constructor Detail |
|---|
public CryptographicServiceMessage()
public CryptographicServiceMessage(String mcl)
mcl - message class name. e.g. MCL_KSM, MCL_RSM...| Method Detail |
|---|
public void setMCL(String mcl)
public String getMCL()
public void addField(String tag,
String content)
tag - Field Tagcontent - Field Content, can't be null, use an empty string ("") instead
NullPointerException - if tag or content is nullpublic String getFieldContent(String tag)
tag -
public String toString()
toString in class Object
public void dump(PrintStream p,
String indent)
dump in interface Loggeablep - a PrintStream usually supplied by Loggerindent - indention string, usually suppiled by LoggerLoggeable
public static CryptographicServiceMessage parse(String csmString)
throws CryptographicServiceMessage.ParsingException
csmString -
CryptographicServiceMessage.ParsingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||