4141#include  < bdlbb_blob.h> 
4242#include  < bsl_iostream.h> 
4343#include  < bsl_string.h> 
44+ #include  < bsl_string_view.h> 
4445#include  < bslma_managedptr.h> 
4546#include  < bslma_usesbslmaallocator.h> 
4647#include  < bslmf_nestedtraitdeclaration.h> 
47- #include  < bslstl_stringref.h> 
4848
4949namespace  BloombergLP  {
5050namespace  mqbplug  {
@@ -63,15 +63,15 @@ class AuthenticationData BSLS_KEYWORD_FINAL {
6363  public: 
6464    //  CREATORS
6565    AuthenticationData (const  bsl::vector<char >& authnPayload,
66-                        bslstl::StringRef         clientIpAddress);
66+                        bsl::string_view          clientIpAddress);
6767
6868    //  ACESSORS
6969
7070    // / Return the authentication material provided by the client.
7171    const  bsl::vector<char >& authnPayload () const ;
7272
7373    // / Return the IP Address of the client.
74-     bslstl::StringRef  clientIpAddress () const ;
74+     bsl::string_view  clientIpAddress () const ;
7575};
7676
7777// ========================== 
@@ -87,7 +87,7 @@ class AuthenticationResult {
8787    //  ACCESSORS
8888
8989    // / Return the principal.
90-     virtual  bslstl::StringRef  principal () const  = 0;
90+     virtual  bsl::string_view  principal () const  = 0;
9191
9292    // / Return the remaining lifetime of an authenticated session.
9393    virtual  const  bsl::optional<bsls::Types::Int64>& lifetimeMs () const  = 0;
@@ -108,12 +108,12 @@ class Authenticator {
108108    //  ACESSORS
109109
110110    // / Return the name of the plugin.
111-     virtual  bslstl::StringRef  name () const  = 0;
111+     virtual  bsl::string_view  name () const  = 0;
112112
113113    // / Return the authentication mechanism supported by this Authenticator.
114114    // / Guaranteed to return a valid mechanism once the Authenticator is
115115    // / constructed.
116-     virtual  bslstl::StringRef  mechanism () const  = 0;
116+     virtual  bsl::string_view  mechanism () const  = 0;
117117
118118    // / Authenticate using the data provided in the specified `input`.
119119    // / - Return `0` on success, and populate the specified `result` with
@@ -166,7 +166,7 @@ struct AuthenticatorUtil {
166166
167167    // / Find authenticator config with the specified `name`
168168    static  const  mqbcfg::AuthenticatorPluginConfig*
169-     findAuthenticatorConfig (bslstl::StringRef  name);
169+     findAuthenticatorConfig (bsl::string_view  name);
170170};
171171
172172// ============================================================================ 
@@ -179,7 +179,7 @@ struct AuthenticatorUtil {
179179
180180inline  AuthenticationData::AuthenticationData (
181181    const  bsl::vector<char >& authnPayload,
182-     bslstl::StringRef         clientIpAddress)
182+     bsl::string_view          clientIpAddress)
183183: d_authnPayload(authnPayload)
184184, d_clientIpAddress(clientIpAddress)
185185{
@@ -190,7 +190,7 @@ inline const bsl::vector<char>& AuthenticationData::authnPayload() const
190190    return  d_authnPayload;
191191}
192192
193- inline  bslstl::StringRef  AuthenticationData::clientIpAddress () const 
193+ inline  bsl::string_view  AuthenticationData::clientIpAddress () const 
194194{
195195    return  d_clientIpAddress;
196196}
0 commit comments