File sasl-functions.patch of Package gnu-crypto
Index: source/gnu/crypto/sasl/ClientMechanism.java
===================================================================
--- source.orig/gnu/crypto/sasl/ClientMechanism.java
+++ source/gnu/crypto/sasl/ClientMechanism.java
@@ -140,9 +140,9 @@ public abstract class ClientMechanism im
return mechanism;
}
- public Object getNegotiatedProperty(final String propName) throws SaslException {
+ public Object getNegotiatedProperty(final String propName) {
if (!isComplete()) {
- throw new IllegalMechanismStateException();
+ throw new RuntimeException();
}
if (Sasl.QOP.equals(propName)) {
return getNegotiatedQOP();
Index: source/gnu/crypto/sasl/ServerMechanism.java
===================================================================
--- source.orig/gnu/crypto/sasl/ServerMechanism.java
+++ source/gnu/crypto/sasl/ServerMechanism.java
@@ -147,9 +147,9 @@ public abstract class ServerMechanism im
return this.authorizationID;
}
- public Object getNegotiatedProperty(final String propName) throws SaslException {
+ public Object getNegotiatedProperty(final String propName) {
if (!isComplete()) {
- throw new IllegalMechanismStateException();
+ throw new RuntimeException();
}
if (Sasl.QOP.equals(propName)) {
return getNegotiatedQOP();