Package | Description |
---|---|
org.ice4j.attribute | |
org.ice4j.ice.harvest | |
org.ice4j.message | |
org.ice4j.security | |
org.ice4j.socket | |
org.ice4j.stack | |
org.ice4j.stunclient |
Modifier and Type | Method and Description |
---|---|
static ErrorCodeAttribute |
AttributeFactory.createErrorCodeAttribute(byte errorClass,
byte errorNumber)
Creates an ErrorCodeAttribute with the specified error class and number
and a default reason phrase.
|
static ErrorCodeAttribute |
AttributeFactory.createErrorCodeAttribute(byte errorClass,
byte errorNumber,
String reasonPhrase)
Creates an ErrorCodeAttribute with the specified error class, number and
reason phrase.
|
static ErrorCodeAttribute |
AttributeFactory.createErrorCodeAttribute(char errorCode)
Creates an ErrorCodeAttribute with the specified error code and a default
reason phrase.
|
static Attribute |
AttributeDecoder.decode(byte[] bytes,
char offset,
char length)
Decodes the specified binary array and returns the corresponding
attribute object.
|
(package private) void |
XorOnlyAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
AddressAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
DataAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Copies the value of the data attribute from the specified
attributeValue.
|
(package private) void |
PriorityAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Reconstructs the priority value from the given byte array
and stores it in the 'long' variable
|
(package private) void |
DontFragmentAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
UnknownAttributesAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
MagicCookieAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
OptionalAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
IceControlAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
RequestedTransportAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
ReservationTokenAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Copies the value of the reservationToken attribute from the specified
attributeValue.
|
(package private) void |
EvenPortAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
NonceAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Copies the value of the nonce attribute from the specified
attributeValue.
|
(package private) void |
UseCandidateAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Decodes the USE-CANDIDATE attribute's body, which is empty
|
(package private) abstract void |
Attribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
RequestedAddressFamilyAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
LifetimeAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
void |
FingerprintAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to the message and attributeValue
arrays.
|
(package private) void |
ChangeRequestAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
ChannelNumberAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
ConnectionIdAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Sets this attribute's fields according to attributeValue array.
|
(package private) void |
RealmAttribute.decodeAttributeBody(byte[] attributeValue,
char offset,
char length)
Copies the value of the realm attribute from the specified
attributeValue.
|
Modifier and Type | Method and Description |
---|---|
protected Message |
TurnCandidateHarvest.createKeepAliveMessage(LocalCandidate candidate)
Creates a new STUN Message to be sent to the STUN server
associated with the StunCandidateHarvester of this instance in
order to keep a specific LocalCandidate (harvested by this
instance) alive.
|
protected Message |
StunCandidateHarvest.createKeepAliveMessage(LocalCandidate candidate)
Creates a new STUN Message to be sent to the STUN server
associated with the StunCandidateHarvester of this instance in
order to keep a specific LocalCandidate (harvested by this
instance) alive.
|
private boolean |
StunCandidateHarvest.processChallenge(byte[] realm,
byte[] nonce,
Request request,
TransactionID requestTransactionID)
Notifies this StunCandidateHarvest that a specific STUN
Request has been challenged for a long-term credential (as the
short-term credential mechanism does not utilize challenging) in a
specific realm and with a specific nonce.
|
private boolean |
StunCandidateHarvest.processChallenge(Response response,
Request request,
TransactionID transactionID)
Notifies this StunCandidateHarvest that a specific STUN
Response has been received and it challenges a specific STUN
Request for a long-term credential (as the short-term credential
mechanism does not utilize challenging).
|
private boolean |
StunCandidateHarvest.processStaleNonce(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN error Response with error code
"438 Stale Nonce" to a specific STUN Request.
|
private boolean |
StunCandidateHarvest.processUnauthorized(Response response,
Request request,
TransactionID transactionID)
Handles a specific STUN error Response with error code
"401 Unauthorized" to a specific STUN Request.
|
protected void |
StunCandidateHarvest.sendKeepAliveMessage()
Sends a new STUN Message to the STUN server associated with the
StunCandidateHarvester of this instance in order to keep a
LocalCandidate harvested by this instance alive.
|
protected boolean |
StunCandidateHarvest.sendKeepAliveMessage(LocalCandidate candidate)
Sends a new STUN Message to the STUN server associated with the
StunCandidateHarvester of this instance in order to keep a
specific LocalCandidate alive.
|
byte[] |
TurnCandidateHarvest.sendRequest(RelayedCandidateDatagramSocket relayedCandidateDatagramSocket,
Request request)
Sends a specific Request on behalf of a specific
RelayedCandidateDatagramSocket to the TURN server associated
with this TurnCandidateHarvest.
|
protected TransactionID |
StunCandidateHarvest.sendRequest(Request request,
boolean firstRequest,
TransactionID transactionID)
Sends a specific Request to the STUN server associated with this
StunCandidateHarvest.
|
Modifier and Type | Method and Description |
---|---|
static void |
MessageFactory.addLongTermCredentialAttributes(Request request,
byte[] username,
byte[] realm,
byte[] nonce)
Adds the Attributes to a specific Request which support
the STUN long-term credential mechanism.
|
static Response |
MessageFactory.createBindingErrorResponseUnknownAttributes(char[] unknownAttributes)
Creates a binding error response with UNKNOWN_ATTRIBUTES error code and
the specified unknown attributes.
|
static Response |
MessageFactory.createBindingErrorResponseUnknownAttributes(String reasonPhrase,
char[] unknownAttributes)
Creates a binding error response with UNKNOWN_ATTRIBUTES error code and
the specified unknown attributes and reason phrase.
|
static Request |
MessageFactory.createBindingRequest(long priority)
Creates a default binding request.
|
static Request |
MessageFactory.createBindingRequest(long priority,
boolean controlling,
long tieBreaker)
Creates a default binding request.
|
static Indication |
MessageFactory.createConnectionAttemptIndication(int connectionIdValue,
TransportAddress peerAddress,
byte[] transactionId)
Creates a ConnectionAttempt Indication in a 6062 compliant manner
containing only CONECTION-ID-ATTRIBUTE attribute and
XOR-PPER-ADDRESS attribute.
|
static ChannelData |
ChannelData.decode(byte[] binMessage,
char offset)
Constructs a message from its binary representation.
|
static Message |
Message.decode(byte[] binMessage,
char offset,
char arrayLen)
Constructs a message from its binary representation.
|
static ChannelData |
ChannelData.decode(byte[] binMessage,
char offset,
char arrayLen)
Deprecated.
|
byte[] |
ChannelData.encode()
Deprecated.
|
byte[] |
ChannelData.encode(boolean pad)
Returns a binary representation of this message.
|
private static void |
Message.performAttributeSpecificActions(Attribute attribute,
byte[] binMessage,
int offset,
int msgLen)
Executes actions related specific attributes like asserting proper
fingerprint checksum.
|
void |
Message.setTransactionID(byte[] tranID)
Copies the specified tranID and sets it as this message's transactionID.
|
Modifier and Type | Method and Description |
---|---|
void |
LongTermCredentialSession.addAttributes(Request request)
Adds the Attributes to a specific Request which support
the long-term credential mechanism using the LongTermCredential
associated with this instance.
|
Modifier and Type | Method and Description |
---|---|
void |
RelayedCandidateDatagramSocket.Channel.bind()
Binds/installs this channel so that it provides this
RelayedCandidateDatagramSocket with a permission to send
data to the TransportAddress associated with this instance.
|
void |
RelayedCandidateDatagramSocket.Channel.send(DatagramPacket p,
TransportAddress peerAddress)
Sends a specific DatagramPacket through this
Channel to a specific peer TransportAddress.
|
Modifier and Type | Method and Description |
---|---|
protected void |
StunServerTransaction.retransmitResponse()
Retransmits the response that was originally sent to the request that
caused this transaction.
|
void |
StunStack.sendChannelData(ChannelData channelData,
TransportAddress sendTo,
TransportAddress sendThrough)
Sends a specific STUN Indication to a specific destination
TransportAddress through a socket registered with this
StunStack using a specific TransportAddress.
|
void |
StunStack.sendIndication(Indication indication,
TransportAddress sendTo,
TransportAddress sendThrough)
Sends a specific STUN Indication to a specific destination
TransportAddress through a socket registered with this
StunStack using a specific TransportAddress.
|
(package private) void |
NetAccessManager.sendMessage(ChannelData channelData,
TransportAddress srcAddr,
TransportAddress remoteAddr)
Sends the specified stun message through the specified access point.
|
void |
StunStack.sendResponse(byte[] transactionID,
Response response,
TransportAddress sendThrough,
TransportAddress sendTo)
Sends the specified response message through the specified access point.
|
void |
StunServerTransaction.sendResponse(Response response,
TransportAddress sendThrough,
TransportAddress sendTo)
Sends the specified response through the
sendThrough
NetAccessPoint descriptor to the specified destination and changes
the transaction's state to retransmitting. |
void |
StunStack.sendUdpMessage(RawMessage udpMessage,
TransportAddress sendTo,
TransportAddress sendThrough)
Sends a specific STUN Indication to a specific destination
TransportAddress through a socket registered with this
StunStack using a specific TransportAddress.
|
private void |
StunStack.validateRequestAttributes(StunMessageEvent evt)
Executes actions related specific attributes like asserting proper
checksums or verifying the validity of user names.
|
Modifier and Type | Method and Description |
---|---|
private void |
NetworkConfigurationDiscoveryProcess.checkStarted()
Makes shure the discoverer is operational and throws an
StunException.ILLEGAL_STATE if that is not the case.
|
StunDiscoveryReport |
NetworkConfigurationDiscoveryProcess.determineAddress()
Implements the discovery process itself (see class description).
|
private StunMessageEvent |
NetworkConfigurationDiscoveryProcess.doTestI(TransportAddress serverAddress)
Sends a binding request to the specified server address.
|
private StunMessageEvent |
NetworkConfigurationDiscoveryProcess.doTestII(TransportAddress serverAddress)
Sends a binding request to the specified server address with both change
IP and change port flags are set to true.
|
private StunMessageEvent |
NetworkConfigurationDiscoveryProcess.doTestIII(TransportAddress serverAddress)
Sends a binding request to the specified server address with only change
port flag set to true and change IP flag - to false.
|
StunMessageEvent |
BlockingRequestSender.sendRequestAndWaitForResponse(Request request,
TransportAddress serverAddress)
Sends the specified request and blocks until a response has been
received or the request transaction has timed out.
|
StunMessageEvent |
BlockingRequestSender.sendRequestAndWaitForResponse(Request request,
TransportAddress serverAddress,
TransactionID tranID)
Sends the specified request and blocks until a response has been
received or the request transaction has timed out with given
transactionID.
|
void |
NetworkConfigurationDiscoveryProcess.start()
Puts the discoverer into an operational state.
|
Copyright © 2018. All rights reserved.