|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.knowcenter.wag.egov.egiz.sig.SignatureDataImpl
Generic implementation of the SignatureData interface for being used by signators and verificators.
| Field Summary | |
protected String |
characterEncoding
The character encoding of the data if appropriate, or null if not. |
protected DataSource |
data
The signature data. |
protected String |
mimeType
The mime type of the data. |
| Constructor Summary | |
SignatureDataImpl(DataSource data,
String mime_type)
Constructor that fills the SignatureData. |
|
SignatureDataImpl(DataSource data,
String mime_type,
String character_encoding)
|
|
| Method Summary | |
String |
getCharacterEncoding()
Returns the character encoding (charset) of the data if appropriate. |
DataSource |
getDataSource()
Returns the DataSource that provides the data for this SignatureData. |
String |
getMimeType()
Returns the mime type of the data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DataSource data
protected String mimeType
protected String characterEncoding
| Constructor Detail |
public SignatureDataImpl(DataSource data,
String mime_type)
The charactor encoding is set to null, so this constructor is primarily for signature data that has no character encoding (e.g. binary data).
data - The signature data.mime_type - The mime type of the data.
public SignatureDataImpl(DataSource data,
String mime_type,
String character_encoding)
| Method Detail |
public DataSource getDataSource()
SignatureData
getDataSource in interface SignatureDataSignatureData.getDataSource()public String getMimeType()
SignatureDataE.g. "text/plain" for text data or "application/pdf" for a PDF.
getMimeType in interface SignatureDataSignatureData.getMimeType()public String getCharacterEncoding()
SignatureDataThis is only appropriate if the mime type suggests that the data contained in here is textually encoded. Usually text/plain or similar data types will have a character encoding present.
If no character encoding is present, null is returned here.
E.g. "UTF-8" is the most common encoding for textual data.
getCharacterEncoding in interface SignatureDataSignatureData.getCharacterEncoding()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||