/** * Retrieves an instance of a signature method that can be used to generate * or verify signatures for data. * * @return the retrieved signature method. * @throws UnsupportedSignatureMethodException if signature method not supported. */ private OAuth1SignatureMethod getSignatureMethod(final OAuth1Parameters params) throws UnsupportedSignatureMethodException { final OAuth1SignatureMethod method = methods.get(params.getSignatureMethod()); if (method == null) { throw new UnsupportedSignatureMethodException(params.getSignatureMethod()); } return method; }
/** * Retrieves an instance of a signature method that can be used to generate * or verify signatures for data. * * @return the retrieved signature method. * @throws UnsupportedSignatureMethodException if signature method not supported. */ private OAuth1SignatureMethod getSignatureMethod(final OAuth1Parameters params) throws UnsupportedSignatureMethodException { final OAuth1SignatureMethod method = methods.get(params.getSignatureMethod()); if (method == null) { throw new UnsupportedSignatureMethodException(params.getSignatureMethod()); } return method; }
/** * Retrieves an instance of a signature method that can be used to generate * or verify signatures for data. * * @return the retrieved signature method. * @throws UnsupportedSignatureMethodException if signature method not supported. */ private OAuth1SignatureMethod getSignatureMethod(final OAuth1Parameters params) throws UnsupportedSignatureMethodException { final OAuth1SignatureMethod method = methods.get(params.getSignatureMethod()); if (method == null) { throw new UnsupportedSignatureMethodException(params.getSignatureMethod()); } return method; }