@Override public Object getNegotiatedProperty(final String propName) { if (! isComplete()) { throw sasl.mechAuthenticationNotComplete(); } // The mechanism might be smart enough to know its principal; if so, use their value instead of our guess. final Object value = super.getNegotiatedProperty(propName); return value == null && WildFlySasl.PRINCIPAL.equals(propName) ? principalSupplier.get() : value; } }
@Override public Object getNegotiatedProperty(final String propName) { if (! isComplete()) { throw sasl.mechAuthenticationNotComplete(); } // The mechanism might be smart enough to know its principal; if so, use their value instead of our guess. final Object value = super.getNegotiatedProperty(propName); return value == null && WildFlySasl.PRINCIPAL.equals(propName) ? principalSupplier.get() : value; } }
@Override public Object getNegotiatedProperty(final String propName) { if (! isComplete()) { throw sasl.mechAuthenticationNotComplete(); } // The mechanism might be smart enough to know its principal; if so, use their value instead of our guess. final Object value = super.getNegotiatedProperty(propName); return value == null && WildFlySasl.PRINCIPAL.equals(propName) ? principalSupplier.get() : value; } }
@Override public Object getNegotiatedProperty(final String propName) { if (! isComplete()) { throw sasl.mechAuthenticationNotComplete(); } // The mechanism might be smart enough to know its principal; if so, use their value instead of our guess. final Object value = super.getNegotiatedProperty(propName); return value == null && WildFlySasl.PRINCIPAL.equals(propName) ? principalSupplier.get() : value; } }