private void checkParametersConsistency(OAuth1Parameters oauth1Parameters, OAuth1Secrets oauth1Secrets) { if (oauth1Parameters.getSignatureMethod() == null) { oauth1Parameters.signatureMethod("HMAC-SHA1"); } if (oauth1Parameters.getVersion() == null) { oauth1Parameters.version(); } if (oauth1Secrets.getConsumerSecret() == null || oauth1Parameters.getConsumerKey() == null) { throw new ProcessingException(LocalizationMessages.ERROR_CONFIGURATION_MISSING_CONSUMER()); } if (oauth1Parameters.getToken() != null && oauth1Secrets.getTokenSecret() == null) { throw new ProcessingException(LocalizationMessages.ERROR_CONFIGURATION_MISSING_TOKEN_SECRET()); } } }
private void checkParametersConsistency(OAuth1Parameters oauth1Parameters, OAuth1Secrets oauth1Secrets) { if (oauth1Parameters.getSignatureMethod() == null) { oauth1Parameters.signatureMethod("HMAC-SHA1"); } if (oauth1Parameters.getVersion() == null) { oauth1Parameters.version(); } if (oauth1Secrets.getConsumerSecret() == null || oauth1Parameters.getConsumerKey() == null) { throw new ProcessingException(LocalizationMessages.ERROR_CONFIGURATION_MISSING_CONSUMER()); } if (oauth1Parameters.getToken() != null && oauth1Secrets.getTokenSecret() == null) { throw new ProcessingException(LocalizationMessages.ERROR_CONFIGURATION_MISSING_TOKEN_SECRET()); } } }
private void checkParametersConsistency(OAuth1Parameters oauth1Parameters, OAuth1Secrets oauth1Secrets) { if (oauth1Parameters.getSignatureMethod() == null) { oauth1Parameters.signatureMethod("HMAC-SHA1"); } if (oauth1Parameters.getVersion() == null) { oauth1Parameters.version(); } if (oauth1Secrets.getConsumerSecret() == null || oauth1Parameters.getConsumerKey() == null) { throw new ProcessingException(LocalizationMessages.ERROR_CONFIGURATION_MISSING_CONSUMER()); } if (oauth1Parameters.getToken() != null && oauth1Secrets.getTokenSecret() == null) { throw new ProcessingException(LocalizationMessages.ERROR_CONFIGURATION_MISSING_TOKEN_SECRET()); } } }
private void checkParametersConsistency(OAuth1Parameters oauth1Parameters, OAuth1Secrets oauth1Secrets) { if (oauth1Parameters.getSignatureMethod() == null) { oauth1Parameters.signatureMethod("HMAC-SHA1"); } if (oauth1Parameters.getVersion() == null) { oauth1Parameters.version(); } if (oauth1Secrets.getConsumerSecret() == null || oauth1Parameters.getConsumerKey() == null) { throw new ProcessingException(LocalizationMessages.ERROR_CONFIGURATION_MISSING_CONSUMER()); } if (oauth1Parameters.getToken() != null && oauth1Secrets.getTokenSecret() == null) { throw new ProcessingException(LocalizationMessages.ERROR_CONFIGURATION_MISSING_TOKEN_SECRET()); } } }