com.solers.slp
Class AuthenticationBlock
java.lang.Object
|
+--com.solers.slp.AuthenticationBlock
- public class AuthenticationBlock
- extends Object
Implementation of the SLP Authentication Block.
- Author:
- Patrick Callis
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
cat
private static org.apache.log4j.Category cat
_publicKey
private PublicKey _publicKey
_privateKey
private PrivateKey _privateKey
_timestamp
private int _timestamp
_data
private byte[] _data
_conf
private SLPConfiguration _conf
_sig
private byte[] _sig
_spi
private String _spi
AuthenticationBlock
AuthenticationBlock(short bsd,
String spi,
int timestamp,
byte[] data,
byte[] signature)
throws ServiceLocationException
AuthenticationBlock
AuthenticationBlock()
sign
private void sign()
throws ServiceLocationException
getSPI
String getSPI()
getTimestamp
int getTimestamp()
verify
boolean verify(byte[] data)
throws ServiceLocationException
calcSize
int calcSize()
writeBlock
void writeBlock(DataOutput out)
throws IOException
readBlock
void readBlock(DataInput in)
throws IOException