From: Thomas W. <tc...@to...> - 2007-06-14 05:43:47
|
Hi, > > > how can i convert a 160 bit string nonce to TcBlobData type in > > > jTSSWrapper library ? The nonce you have is a Java String? In case you are using jTSS Wrapper < 0.3 use the following code: TcBlobData blob = TcTssStructFactory.newBlobData().initStringASCII("yourNonce"); In case you are using jTSS Wrapper 0.3 use the following code: TcBlobData blob = TcBlobData.newStringASCII("yourNonce"); Nontice: The main difference between 0.3. and older versions here is that the StructFactory was replaced by factory methods. hth, -- Thomas Winkler e-mail: tc...@to... |