Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1380

Calling getNegotiatedProperty for Elytron SASL mechanisms doesn't throw IllegalStateException when negotiatition is not completed

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 1.2.0.Beta4
    • Fix Version/s: 1.2.0.Beta6
    • Component/s: SASL
    • Labels:
      None

      Description

      The Elytron SASL mechanism implementations don't throw IllegalStateException when calling the getNegotiatedProperty() method before the negotiation is finished.

      The contract of the Object javax.security.sasl.SaslClient.getNegotiatedProperty(String propName) says:

      Retrieves the negotiated property. This method can be called only after the authentication exchange has completed (i.e., when isComplete() returns true); otherwise, an IllegalStateException is thrown.

      The same is valid for the SaslServer interface.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  honza889 Jan Kalina
                  Reporter:
                  honza889 Jan Kalina
                  Tester:
                  Martin Svehla
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: