|
jPOS 1.6.1 API Documentation | ||||||||
| 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 java.lang.String |
MCL_ESM
|
static java.lang.String |
MCL_KSM
|
static java.lang.String |
MCL_RSI
|
static java.lang.String |
MCL_RSM
|
static java.lang.String |
TAG_CTP
|
static java.lang.String |
TAG_CTR
|
static java.lang.String |
TAG_ERF
|
static java.lang.String |
TAG_KD
|
static java.lang.String |
TAG_ORG
|
static java.lang.String |
TAG_RCV
|
static java.lang.String |
TAG_SVR
|
| Constructor Summary | |
|---|---|
CryptographicServiceMessage()
|
|
CryptographicServiceMessage(java.lang.String mcl)
Creates a CSM and sets its Message Class |
|
| Method Summary | |
|---|---|
void |
addField(java.lang.String tag,
java.lang.String content)
adds a field to the CSM |
void |
dump(java.io.PrintStream p,
java.lang.String indent)
dumps CSM basic information |
java.lang.String |
getFieldContent(java.lang.String tag)
Returns the field content of a field with the given tag |
java.lang.String |
getMCL()
|
static CryptographicServiceMessage |
parse(java.lang.String csmString)
Parses a csm string |
void |
setMCL(java.lang.String mcl)
|
java.lang.String |
toString()
Formats the CSM as a string, suitable for transfer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MCL_RSI
public static final java.lang.String MCL_KSM
public static final java.lang.String MCL_RSM
public static final java.lang.String MCL_ESM
public static final java.lang.String TAG_RCV
public static final java.lang.String TAG_ORG
public static final java.lang.String TAG_SVR
public static final java.lang.String TAG_KD
public static final java.lang.String TAG_CTP
public static final java.lang.String TAG_CTR
public static final java.lang.String TAG_ERF
| Constructor Detail |
|---|
public CryptographicServiceMessage()
public CryptographicServiceMessage(java.lang.String mcl)
mcl - message class name. e.g. MCL_KSM, MCL_RSM...| Method Detail |
|---|
public void setMCL(java.lang.String mcl)
public java.lang.String getMCL()
public void addField(java.lang.String tag,
java.lang.String content)
tag - Field Tagcontent - Field Content, can't be null, use an empty string ("") instead
java.lang.NullPointerException - if tag or content is nullpublic java.lang.String getFieldContent(java.lang.String tag)
tag -
public java.lang.String toString()
toString in class java.lang.Object
public void dump(java.io.PrintStream p,
java.lang.String indent)
dump in interface Loggeablep - a PrintStream usually supplied by Loggerindent - indention string, usually suppiled by LoggerLoggeable
public static CryptographicServiceMessage parse(java.lang.String csmString)
throws CryptographicServiceMessage.ParsingException
csmString -
CryptographicServiceMessage.ParsingException
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||