TlsSrpIdentityManager.cs 1000 B

12345678910111213141516171819202122232425
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
  5. {
  6. public interface TlsSrpIdentityManager
  7. {
  8. /**
  9. * Lookup the {@link TlsSRPLoginParameters} corresponding to the specified identity.
  10. *
  11. * NOTE: To avoid "identity probing", unknown identities SHOULD be handled as recommended in RFC
  12. * 5054 2.5.1.3. {@link SimulatedTlsSRPIdentityManager} is provided for this purpose.
  13. *
  14. * @param identity
  15. * the SRP identity sent by the connecting client
  16. * @return the {@link TlsSRPLoginParameters} for the specified identity, or else 'simulated'
  17. * parameters if the identity is not recognized. A null value is also allowed, but not
  18. * recommended.
  19. */
  20. TlsSrpLoginParameters GetLoginParameters(byte[] identity);
  21. }
  22. }
  23. #pragma warning restore
  24. #endif