com.tivoli.twg.netipc
Class TWGNetAddress

java.lang.Object
  extended bycom.tivoli.twg.netipc.TWGNetAddress

public abstract class TWGNetAddress
extends java.lang.Object


Field Summary
protected  java.lang.String address_name
           
static int AUTH_STATE_COMPLETE
           
static int AUTH_STATE_IN_PROGRESS
           
static int AUTH_STATE_NOT_AUTHORIZED
           
static int INVALID_KEY
           
protected  java.lang.String protocol_name
           
protected  java.lang.String qualified_address_name
           
protected  TWGDatagramSocket sock
           
 
Constructor Summary
TWGNetAddress(TWGDatagramSocket sock)
           
 
Method Summary
 boolean CheckInbound(int key)
          Verify access for inbound initialization request
 java.lang.Object endAndDequeueNextSimpleSend(int xferid)
           
 java.lang.String getAddressName()
           
 TWGDatagramSocket getDatagramSocket()
           
 int GetInSecKey()
           
 int GetInSecState()
           
 int GetLastAuthXferId()
           
 int GetLastSimpleRecv()
           
 int GetOutSecKey()
           
 int GetOutSecState()
           
 StringValueSet getPrivSet()
           
 java.lang.String getProtocolName()
           
 void GrantInbound(StringValueSet privs, int xfer_id)
          Grant inbound access using specified password and inbound key
 boolean hasSecMgrAccess()
          Return whether address is authorized to SecMgr service
 void InvalidateInSecKey()
           
 void InvalidateOutSecKey()
           
 boolean isReliable()
           
 void SendDatagram(byte[] b, int len)
           
 void SendDatagram(byte[] b, int len, boolean delayed)
          Send datagram (delayed or not)
 void setAddressName(java.lang.String addr_name)
           
 void SetInPrivs(StringValueSet privs)
           
 void SetInSecKey(int key)
           
 void SetInSecState(int s)
           
 void SetLastAuthXferId(int xfid)
           
 void SetLastSimpleRecv(int xfid)
           
 void SetOutSecKey(int key)
           
 void SetOutSecState(int s)
           
 boolean startOrEnqueueSimpleSend(int xferid, java.lang.Object xfer)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTH_STATE_NOT_AUTHORIZED

public static final int AUTH_STATE_NOT_AUTHORIZED
See Also:
Constant Field Values

AUTH_STATE_IN_PROGRESS

public static final int AUTH_STATE_IN_PROGRESS
See Also:
Constant Field Values

AUTH_STATE_COMPLETE

public static final int AUTH_STATE_COMPLETE
See Also:
Constant Field Values

INVALID_KEY

public static final int INVALID_KEY
See Also:
Constant Field Values

sock

protected TWGDatagramSocket sock

protocol_name

protected java.lang.String protocol_name

address_name

protected java.lang.String address_name

qualified_address_name

protected java.lang.String qualified_address_name
Constructor Detail

TWGNetAddress

public TWGNetAddress(TWGDatagramSocket sock)
Method Detail

isReliable

public boolean isReliable()

getAddressName

public java.lang.String getAddressName()

setAddressName

public void setAddressName(java.lang.String addr_name)

getProtocolName

public java.lang.String getProtocolName()

toString

public java.lang.String toString()

getDatagramSocket

public TWGDatagramSocket getDatagramSocket()

SendDatagram

public void SendDatagram(byte[] b,
                         int len)
                  throws java.io.IOException
Throws:
java.io.IOException

SendDatagram

public void SendDatagram(byte[] b,
                         int len,
                         boolean delayed)
                  throws java.io.IOException
Send datagram (delayed or not)

Parameters:
b - - datagram buffer
len - - length of datagram
delayed - - whether to delay before sending
Throws:
java.io.IOException

startOrEnqueueSimpleSend

public boolean startOrEnqueueSimpleSend(int xferid,
                                        java.lang.Object xfer)

endAndDequeueNextSimpleSend

public java.lang.Object endAndDequeueNextSimpleSend(int xferid)

SetLastSimpleRecv

public void SetLastSimpleRecv(int xfid)

GetLastSimpleRecv

public int GetLastSimpleRecv()

SetLastAuthXferId

public void SetLastAuthXferId(int xfid)

GetLastAuthXferId

public int GetLastAuthXferId()

SetOutSecKey

public void SetOutSecKey(int key)

InvalidateOutSecKey

public void InvalidateOutSecKey()

InvalidateInSecKey

public void InvalidateInSecKey()

SetInSecKey

public void SetInSecKey(int key)

GetInSecKey

public int GetInSecKey()

GetOutSecKey

public int GetOutSecKey()

GetInSecState

public int GetInSecState()

GetOutSecState

public int GetOutSecState()

SetOutSecState

public void SetOutSecState(int s)

SetInSecState

public void SetInSecState(int s)

SetInPrivs

public void SetInPrivs(StringValueSet privs)

GrantInbound

public void GrantInbound(StringValueSet privs,
                         int xfer_id)
Grant inbound access using specified password and inbound key


CheckInbound

public boolean CheckInbound(int key)
Verify access for inbound initialization request


getPrivSet

public StringValueSet getPrivSet()

hasSecMgrAccess

public boolean hasSecMgrAccess()
Return whether address is authorized to SecMgr service

Returns:
true if address is authorized to SecMgr service