javax.sip
Interface TlsSecurityPolicy
public interface TlsSecurityPolicy
An implementation of this interface can be registered with the sip stack using the
configuration property javax.sip.TLS_SECURITY_POLICY.
This intervenes in the TLS handshake and is responsible for certificate checking.
An implementation shall provide a trivial policy which always accepts the
certificate.
- Since:
- 2.0
- Version:
- 2.0
- Author:
- Oracle Inc., NIST
enforceTlsPolicy
void enforceTlsPolicy(ClientTransaction transaction)
throws SecurityException
- Enforce any application-specific security policy for TLS clients.
Called when establishing an outgoing TLS connection.
- Parameters:
transaction
- -- the transaction context for the connection
- Throws:
SecurityException
- -- if the certificates extracted from the client transaction are not acceptable.
See conditions of use.
Submit a bug report or feature request.