ClientSecurityProvider and ServerSecurityProvider define interfaces for authentication provider. Methods setCurrent() on the client side and setCurrentInitiating(), setCurrentAccepting() on the server side perform tasks associated with making security provider active for initiating and accepting new calls. Typically, SecurityProvider adds associating interceptor to stub or service endpoint.