/** * Determine whether the properties match this mechanism. * * @param props the properties * @param query is this call querying names? Or creating the mechanism. * * @return {@code true} if there is a match, {@code false} otherwise */ protected boolean matches(final Map<String, ?> props, final boolean query) { return (getPropertyValue(WildFlySasl.MECHANISM_QUERY_ALL, props, false) && query) || ! (getPropertyValue(Sasl.POLICY_NOPLAINTEXT, props, false) && isPlainText() || getPropertyValue(Sasl.POLICY_NOANONYMOUS, props, false) && isAnonymous() || getPropertyValue(Sasl.POLICY_FORWARD_SECRECY, props, false) && ! isForwardSecrecy() || getPropertyValue(Sasl.POLICY_NOACTIVE, props, false) && isActiveSusceptible() || getPropertyValue(Sasl.POLICY_NODICTIONARY, props, false) && isDictionarySusceptible() || getPropertyValue(Sasl.POLICY_PASS_CREDENTIALS, props, false) && ! isPassCredentials()); }
/** * Get the mechanism names matching the given properties. * * @param props the properties * @return the mechanism names */ public String[] getMechanismNames(Map<String, ?> props) { if (matches(props, true)) { return names; } else { return EMPTY; } }
@Override protected boolean isPassCredentials() { /* * Need to double check some details on this one but as a mechanism it should be possible to delegate the clients * credentials to the server. */ return super.isPassCredentials(); }
@Override protected boolean isPassCredentials() { /* * Need to double check some details on this one but as a mechanism it should be possible to delegate the clients * credentials to the server. */ return super.isPassCredentials(); }
/** * Determine whether the properties match this mechanism. * * @param props the properties * @param query is this call querying names? Or creating the mechanism. * * @return {@code true} if there is a match, {@code false} otherwise */ protected boolean matches(final Map<String, ?> props, final boolean query) { return (getPropertyValue(WildFlySasl.MECHANISM_QUERY_ALL, props, false) && query) || ! (getPropertyValue(Sasl.POLICY_NOPLAINTEXT, props, false) && isPlainText() || getPropertyValue(Sasl.POLICY_NOANONYMOUS, props, false) && isAnonymous() || getPropertyValue(Sasl.POLICY_FORWARD_SECRECY, props, false) && ! isForwardSecrecy() || getPropertyValue(Sasl.POLICY_NOACTIVE, props, false) && isActiveSusceptible() || getPropertyValue(Sasl.POLICY_NODICTIONARY, props, false) && isDictionarySusceptible() || getPropertyValue(Sasl.POLICY_PASS_CREDENTIALS, props, false) && ! isPassCredentials()); }
@Override protected boolean isPassCredentials() { /* * Need to double check some details on this one but as a mechanism it should be possible to delegate the clients * credentials to the server. */ return super.isPassCredentials(); }
/** * Get the mechanism names matching the given properties. * * @param props the properties * @return the mechanism names */ public String[] getMechanismNames(Map<String, ?> props) { if (matches(props, true)) { return names; } else { return EMPTY; } }
/** * Determine whether the properties match this mechanism. * * @param props the properties * @param query is this call querying names? Or creating the mechanism. * * @return {@code true} if there is a match, {@code false} otherwise */ protected boolean matches(final Map<String, ?> props, final boolean query) { return (getPropertyValue(WildFlySasl.MECHANISM_QUERY_ALL, props, false) && query) || ! (getPropertyValue(Sasl.POLICY_NOPLAINTEXT, props, false) && isPlainText() || getPropertyValue(Sasl.POLICY_NOANONYMOUS, props, false) && isAnonymous() || getPropertyValue(Sasl.POLICY_FORWARD_SECRECY, props, false) && ! isForwardSecrecy() || getPropertyValue(Sasl.POLICY_NOACTIVE, props, false) && isActiveSusceptible() || getPropertyValue(Sasl.POLICY_NODICTIONARY, props, false) && isDictionarySusceptible() || getPropertyValue(Sasl.POLICY_PASS_CREDENTIALS, props, false) && ! isPassCredentials()); }
@Override protected boolean isPassCredentials() { /* * Need to double check some details on this one but as a mechanism it should be possible to delegate the clients * credentials to the server. */ return super.isPassCredentials(); }
/** * Get the mechanism names matching the given properties. * * @param props the properties * @return the mechanism names */ public String[] getMechanismNames(Map<String, ?> props) { if (matches(props, true)) { return names; } else { return EMPTY; } }
/** * Determine whether the properties match this mechanism. * * @param props the properties * @param query is this call querying names? Or creating the mechanism. * * @return {@code true} if there is a match, {@code false} otherwise */ protected boolean matches(final Map<String, ?> props, final boolean query) { return (getPropertyValue(WildFlySasl.MECHANISM_QUERY_ALL, props, false) && query) || ! (getPropertyValue(Sasl.POLICY_NOPLAINTEXT, props, false) && isPlainText() || getPropertyValue(Sasl.POLICY_NOANONYMOUS, props, false) && isAnonymous() || getPropertyValue(Sasl.POLICY_FORWARD_SECRECY, props, false) && ! isForwardSecrecy() || getPropertyValue(Sasl.POLICY_NOACTIVE, props, false) && isActiveSusceptible() || getPropertyValue(Sasl.POLICY_NODICTIONARY, props, false) && isDictionarySusceptible() || getPropertyValue(Sasl.POLICY_PASS_CREDENTIALS, props, false) && ! isPassCredentials()); }
/** * Get the mechanism names matching the given properties. * * @param props the properties * @return the mechanism names */ public String[] getMechanismNames(Map<String, ?> props) { if (matches(props, true)) { return names; } else { return EMPTY; } }