ch.ethz.iks.slp.impl
Class AuthenticatedURL

Package class diagram package AuthenticatedURL
java.lang.Object
  extended by ch.ethz.iks.slp.impl.AuthenticatedURL
Direct Known Subclasses:
ServiceURL

public abstract class AuthenticatedURL
extends Object

an authenticated URL block within an SLPMessage.

Since:
0.4
Author:
Jan S. Rellermeyer, Systems Group, ETH Zurich

Field Summary
protected  ch.ethz.iks.slp.impl.AuthenticationBlock[] authBlocks
          the auth blocks.
 
Constructor Summary
AuthenticatedURL()
          create a new authenticated URL.
 
Method Summary
protected  int getAuthBlockLength()
           
protected static ch.ethz.iks.slp.impl.AuthenticationBlock[] parseAuthBlock(DataInputStream input)
          parse the auth blocks.
protected  void sign(List spiList)
          sign the ServiceURL.
protected  boolean verify()
          verifies the authentication blocks of the ServiceURL.
protected  void writeAuthBlock(DataOutputStream out)
          get the authentication block bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authBlocks

protected ch.ethz.iks.slp.impl.AuthenticationBlock[] authBlocks
the auth blocks.

Constructor Detail

AuthenticatedURL

public AuthenticatedURL()
create a new authenticated URL.

Method Detail

sign

protected final void sign(List spiList)
                   throws ServiceLocationException
sign the ServiceURL.

Parameters:
spiList - the List of SPIs
Throws:
ServiceLocationException - in case of IO errors.

verify

protected final boolean verify()
                        throws ServiceLocationException
verifies the authentication blocks of the ServiceURL.

Returns:
true if the verification succeeds.
Throws:
ServiceLocationException - in case of IO errors.

writeAuthBlock

protected void writeAuthBlock(DataOutputStream out)
                       throws IOException
get the authentication block bytes.

Throws:
IOException - in case of IO errors.

getAuthBlockLength

protected final int getAuthBlockLength()

parseAuthBlock

protected static final ch.ethz.iks.slp.impl.AuthenticationBlock[] parseAuthBlock(DataInputStream input)
                                                                          throws ServiceLocationException,
                                                                                 IOException
parse the auth blocks.

Parameters:
input - the data input.
Returns:
the auth blocks.
Throws:
ServiceLocationException - if something goes wrong.
IOException


Copyright © 2014 universAAL Consortium. All Rights Reserved.