blob: 50249441ee69df2962848d70679f6ce3b4832d39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
package gov.nist.javax.sip;
import java.security.cert.Certificate;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.sip.SipProvider;
import javax.sip.Transaction;
public interface TransactionExt extends Transaction {
/**
* Get the Sip Provider associated with this transaction
*/
public SipProvider getSipProvider();
/**
* Returns the IP address of the upstream/downstream hop from which this message was initially received
* @return the IP address of the upstream/downstream hop from which this message was initially received
* @since 2.0
*/
public String getPeerAddress();
/**
* Returns the port of the upstream/downstream hop from which this message was initially received
* @return the port of the upstream/downstream hop from which this message was initially received
* @since 2.0
*/
public int getPeerPort();
/**
* Returns the name of the protocol with which this message was initially received
* @return the name of the protocol with which this message was initially received
* @since 2.0
*/
public String getTransport();
/**
* return the ip address on which this message was initially received
* @return the ip address on which this message was initially received
*/
public String getHost();
/**
* return the port on which this message was initially received
* @return the port on which this message was initially received
*/
public int getPort();
/**
* Return the Cipher Suite that was used for the SSL handshake.
*
* @return Returns the cipher suite in use by the session which was produced by the handshake.
* @throw UnsupportedOperationException if this is not a secure client transaction.
*/
public String getCipherSuite() throws UnsupportedOperationException;
/**
* Get the certificate(s) that were sent to the peer during handshaking.
*@return the certificate(s) that were sent to the peer during handshaking.
*@throw UnsupportedOperationException if this is not a secure client transaction.
*
*/
Certificate[] getLocalCertificates() throws UnsupportedOperationException;
/**
* @return the identity of the peer which was identified as part of defining the session.
* @throws SSLPeerUnverifiedException
* @throw UnsupportedOperationException if this is not a secure client transaction.
*/
Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException;
}
|